Upstream information

CVE-2022-31163 at MITRE

Description

TZInfo is a Ruby library that provides access to time zone data and allows times to be converted using time zone rules. Versions prior to 0.36.1, as well as those prior to 1.2.10 when used with the Ruby data source tzinfo-data, are vulnerable to relative path traversal. With the Ruby data source, time zones are defined in Ruby files. There is one file per time zone. Time zone files are loaded with `require` on demand. In the affected versions, `TZInfo::Timezone.get` fails to validate time zone identifiers correctly, allowing a new line character within the identifier. With Ruby version 1.9.3 and later, `TZInfo::Timezone.get` can be made to load unintended files with `require`, executing them within the Ruby process. Versions 0.3.61 and 1.2.10 include fixes to correctly validate time zone identifiers. Versions 2.0.0 and later are not vulnerable. Version 0.3.61 can still load arbitrary files from the Ruby load path if their name follows the rules for a valid time zone identifier and the file has a prefix of `tzinfo/definition` within a directory in the load path. Applications should ensure that untrusted files are not placed in a directory on the load path. As a workaround, the time zone identifier can be validated before passing to `TZInfo::Timezone.get` by ensuring it matches the regular expression `\A[A-Za-z0-9+\-_]+(?:\/[A-Za-z0-9+\-_]+)*\z`.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 8.1 7.5
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Network Network
Attack Complexity High High
Privileges Required None None
User Interaction None Required
Scope Unchanged Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1201835 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
Image SLES15-SP1-SAP-Azure-LI-BYOS-Production
Image SLES15-SP1-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP2-SAP-Azure
Image SLES15-SP2-SAP-Azure-LI-BYOS-Production
Image SLES15-SP2-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP2-SAP-BYOS-Azure
Image SLES15-SP2-SAP-BYOS-EC2-HVM
Image SLES15-SP2-SAP-BYOS-GCE
Image SLES15-SP2-SAP-EC2-HVM
Image SLES15-SP2-SAP-GCE
Image SLES15-SP3-SAP-Azure-LI-BYOS-Production
Image SLES15-SP3-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP3-SAP-BYOS-Azure
Image SLES15-SP3-SAP-BYOS-EC2-HVM
Image SLES15-SP3-SAP-BYOS-GCE
Image SLES15-SP4-SAP-Azure-LI-BYOS
Image SLES15-SP4-SAP-Azure-LI-BYOS-Production
Image SLES15-SP4-SAP-Azure-VLI-BYOS
Image SLES15-SP4-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP4-SAP-BYOS
Image SLES15-SP4-SAP-BYOS-Azure
Image SLES15-SP4-SAP-BYOS-EC2
Image SLES15-SP4-SAP-BYOS-GCE
Image SLES15-SP4-SAP-Hardened
Image SLES15-SP4-SAP-Hardened-Azure
Image SLES15-SP4-SAP-Hardened-BYOS
Image SLES15-SP4-SAP-Hardened-BYOS-Azure
Image SLES15-SP4-SAP-Hardened-BYOS-EC2
Image SLES15-SP4-SAP-Hardened-BYOS-GCE
Image SLES15-SP4-SAP-Hardened-EC2
Image SLES15-SP4-SAP-Hardened-GCE
Image SLES15-SP5-SAP-Azure-LI-BYOS
Image SLES15-SP5-SAP-Azure-LI-BYOS-Production
Image SLES15-SP5-SAP-Azure-VLI-BYOS
Image SLES15-SP5-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP5-SAP-BYOS-Azure
Image SLES15-SP5-SAP-BYOS-EC2
Image SLES15-SP5-SAP-BYOS-GCE
Image SLES15-SP5-SAP-Hardened-Azure
Image SLES15-SP5-SAP-Hardened-BYOS-Azure
Image SLES15-SP5-SAP-Hardened-BYOS-EC2
Image SLES15-SP5-SAP-Hardened-BYOS-GCE
Image SLES15-SP5-SAP-Hardened-EC2
Image SLES15-SP5-SAP-Hardened-GCE
Image SLES15-SP6-SAP-Azure-LI-BYOS
Image SLES15-SP6-SAP-Azure-LI-BYOS-Production
Image SLES15-SP6-SAP-Azure-VLI-BYOS
Image SLES15-SP6-SAP-Azure-VLI-BYOS-Production
Image SLES15-SP6-SAP-BYOS
Image SLES15-SP6-SAP-BYOS-Azure
Image SLES15-SP6-SAP-BYOS-EC2
Image SLES15-SP6-SAP-BYOS-GCE
Image SLES15-SP6-SAP-Hardened
Image SLES15-SP6-SAP-Hardened-Azure
Image SLES15-SP6-SAP-Hardened-BYOS
Image SLES15-SP6-SAP-Hardened-BYOS-Azure
Image SLES15-SP6-SAP-Hardened-BYOS-EC2
Image SLES15-SP6-SAP-Hardened-BYOS-GCE
Image SLES15-SP6-SAP-Hardened-EC2
Image SLES15-SP6-SAP-Hardened-GCE
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
SUSE Linux Enterprise High Availability Extension 15 SP1
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE-SLE-Product-HA-15-SP1-2022-2592
SUSE Linux Enterprise High Availability Extension 15 SP2
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE-SLE-Product-HA-15-SP2-2022-2592
SUSE Linux Enterprise High Availability Extension 15 SP3
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE-SLE-Product-HA-15-SP3-2022-2592
SUSE Linux Enterprise High Availability Extension 15 SP4
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE-SLE-Product-HA-15-SP4-2022-2592
SUSE Linux Enterprise High Availability Extension 15 SP5
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE Linux Enterprise High Availability Extension 15 SP5 GA rubygem-tzinfo-1.2.4-150000.3.3.1
SUSE Linux Enterprise High Availability Extension 15 SP6
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE Linux Enterprise High Availability Extension 15 SP6 GA rubygem-tzinfo-1.2.4-150000.3.3.1
SUSE Linux Enterprise High Availability Extension 15
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
Patchnames:
SUSE-SLE-Product-HA-15-2022-2592
SUSE OpenStack Cloud Crowbar 8
  • ruby2.1-rubygem-tzinfo >= 1.2.2-3.3.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-8-2022-2765
SUSE OpenStack Cloud Crowbar 9
  • ruby2.1-rubygem-tzinfo >= 1.2.2-3.3.1
Patchnames:
SUSE-OpenStack-Cloud-Crowbar-9-2022-2765
openSUSE Leap 15.3
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
  • ruby2.5-rubygem-tzinfo-doc >= 1.2.4-150000.3.3.1
  • ruby2.5-rubygem-tzinfo-testsuite >= 1.2.4-150000.3.3.1
Patchnames:
openSUSE-SLE-15.3-2022-2592
openSUSE Leap 15.4
  • ruby2.5-rubygem-tzinfo >= 1.2.4-150000.3.3.1
  • ruby2.5-rubygem-tzinfo-doc >= 1.2.4-150000.3.3.1
  • ruby2.5-rubygem-tzinfo-testsuite >= 1.2.4-150000.3.3.1
Patchnames:
openSUSE-SLE-15.4-2022-2592
openSUSE Tumbleweed
  • ruby3.1-rubygem-tzinfo-1.2 >= 1.2.10-1.1
  • ruby3.2-rubygem-tzinfo-1.2 >= 1.2.10-1.4
  • ruby3.3-rubygem-tzinfo-1.2 >= 1.2.11-1.5
Patchnames:
openSUSE-Tumbleweed-2024-12249
openSUSE-Tumbleweed-2024-13171
openSUSE-Tumbleweed-2024-14178


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise High Availability Extension 15 SP5 rubygem-tzinfo Released
SUSE Linux Enterprise High Availability Extension 15 SP6 rubygem-tzinfo Released
openSUSE Leap 15.5 rubygem-tzinfo Affected
openSUSE Leap 15.6 rubygem-tzinfo Affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise High Availability Extension 15 SP2 rubygem-tzinfo Released
SUSE Linux Enterprise High Availability Extension 15 SP3 rubygem-tzinfo Released
SUSE Linux Enterprise High Availability Extension 15 SP4 rubygem-tzinfo Released
Products past their end of life and not receiving proactive updates anymore.
SUSE Enterprise Storage 2.1 rubygem-tzinfo Affected
SUSE Enterprise Storage 3 rubygem-tzinfo Affected
SUSE Enterprise Storage 4 rubygem-tzinfo Affected
SUSE Linux Enterprise High Availability Extension 15 rubygem-tzinfo Released
SUSE Linux Enterprise High Availability Extension 15 SP1 rubygem-tzinfo Released
SUSE OpenStack Cloud 6 rubygem-tzinfo Affected
SUSE OpenStack Cloud 6-LTSS rubygem-tzinfo Affected
SUSE OpenStack Cloud 7 rubygem-tzinfo Affected
SUSE OpenStack Cloud Crowbar 8 rubygem-tzinfo Released
SUSE OpenStack Cloud Crowbar 9 rubygem-tzinfo Released
openSUSE Leap 15.3 rubygem-tzinfo Affected
openSUSE Leap 15.4 rubygem-tzinfo Affected


SUSE Timeline for this CVE

CVE page created: Fri Jul 22 11:09:47 2022
CVE page last modified: Fri Nov 15 13:36:34 2024