Read the docs
TI-2022-13206 Aliases CVE-2022-31163GHSA-5cm2-9h8c-rvfx

TZInfo relative path traversal vulnerability allows loading of arbitrary files

Priority HIGH 70CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 4 fixed, 2 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.

Summary

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`.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02449 84th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial tzinfo (tzinfo): 0.3.61, 1.2.10tzinfo (RubyGems): 0.3.61, 1.2.10Red Hat: 3 advisoriesRed Hat: 4 fixed, 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
tzinfotzinfobefore 0.3.61; 1.0.0 to before 1.2.100.3.61, 1.2.10Patch availableCNA
—tzinfo (RubyGems)before 0.3.610.3.61Patch availableGHSA-5cm2-9h8c-rvfx
—tzinfo (RubyGems)1.0.0 to before 1.2.101.2.10Patch availableGHSA-5cm2-9h8c-rvfx
  • tzinfo Vendortzinfo Affected before 0.3.61; 1.0.0 to before 1.2.10 Fixed in 0.3.61, 1.2.10 Patch available CNA
  • tzinfo (RubyGems) Vendor— Affected before 0.3.61 Fixed in 0.3.61 Patch available GHSA-5cm2-9h8c-rvfx
  • tzinfo (RubyGems) Vendor— Affected 1.0.0 to before 1.2.10 Fixed in 1.2.10 Patch available GHSA-5cm2-9h8c-rvfx

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:tzinfo_project:tzinfo:*:*:*:*:*:*:*:*before 0.3.61; 1.0.0 to before 1.2.10VulnerableTzinfo Project
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*10.0VulnerableDebian
  • cpe:2.3:a:tzinfo_project:tzinfo:*:*:*:*:*:*:*:* Versions before 0.3.61; 1.0.0 to before 1.2.10 Vulnerable ·Tzinfo Project
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian

Remediation

  • Fix · CNA tzinfo (tzinfo) Fixed in 0.3.61, 1.2.10
  • Fix · GHSA-5cm2-9h8c-rvfx tzinfo (RubyGems) Fixed in 0.3.61 Advisory →
  • Fix · GHSA-5cm2-9h8c-rvfx tzinfo (RubyGems) Fixed in 1.2.10 Advisory →

Red Hat 3 advisories

  • RHSA-2023:2097 Released 2023-05-03 · Red Hat rating Important
    Satellite 6.13 Release
    • Red Hat Satellite 6.13 for RHEL 8 ansible-collection-redhat-satellite-3.9.0-2.el8sat, ansible-collection-redhat-satellite_operations-1.3.0-2.el8sat, ansible-lint-5.0.8-4.el8pc +47
  • RHSA-2023:1486 Released 2023-03-28 · Red Hat rating Important
    Red Hat Gluster Storage web-admin-build security update
    • Red Hat Gluster 3.5 Web Administration on RHEL-7 grafana-5.2.4-6.el7rhgs, rubygem-puma-4.3.12-1.el7rhgs, rubygem-puma-doc-4.3.12-1.el7rhgs +4
  • RHSA-2022:7242 Released 2022-10-27 · Red Hat rating Important
    Satellite 6.11.4 Async Security Update
    • Red Hat Satellite 6.11 for RHEL 7 tfm-rubygem-rack-2.2.3.1-1.el7sat, tfm-rubygem-tzinfo-1.2.10-1.el7sat
    • Red Hat Satellite 6.11 for RHEL 8 rubygem-rack-2.2.3.1-1.el8sat, rubygem-tzinfo-1.2.10-1.el8sat

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift Container Platform 3.11AffectedNo fix yet
Red Hat OpenStack Platform 13 (Queens) Operational ToolsAffectedNo fix planned: Will not fix
Red Hat Gluster 3.5 Web Administration on RHEL-7Fixed RHSA-2023:1486
Red Hat Satellite 6.11 for RHEL 7Fixed RHSA-2022:7242
Red Hat Satellite 6.11 for RHEL 8Fixed RHSA-2022:7242
Red Hat Satellite 6.13 for RHEL 8Fixed RHSA-2023:2097
Not affected: 4 products
  • Red Hat Gluster 3.5 Web Administration on RHEL-7
  • Red Hat Satellite 6.11 for RHEL 7
  • Red Hat Satellite 6.11 for RHEL 8
  • Red Hat Satellite 6.13 for RHEL 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31163
  2. 2026-10-03 Alias added: GHSA-5cm2-9h8c-rvfx

References

Sources