CVEBrief

Home / tzinfo / tzinfo / CVE-2022-31163

CVE-2022-31163: is it exploited, and which versions of tzinfo are affected and fixed?

CVE-2022-31163 is a path traversal (reading or writing files outside the intended folder) vulnerability in tzinfo. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: tzinfo before 0.3.61 and tzinfo from 1.0.0 before 1.2.10 (GitHub advisory GHSA-5cm2-9h8c-rvfx). Fixed in 0.3.61 and 1.2.10 (GitHub advisory GHSA-5cm2-9h8c-rvfx). Severity: High (7.5, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:47 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 15:09 UTC
Affected
tzinfo before 0.3.61 and tzinfo from 1.0.0 before 1.2.10
GitHub advisory GHSA-5cm2-9h8c-rvfx
Fixed in
0.3.61 and 1.2.10
GitHub advisory GHSA-5cm2-9h8c-rvfx
Severity
High 7.5
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
2.45% in 30 days
higher than 85% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2022-31163?

TZInfo relative path traversal vulnerability allows loading of arbitrary files

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

From the CVE record by GitHub_M, last updated September 5, 2024, 14:09 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
tzinfotzinfo< 0.3.61
>= 1.0.0, < 1.2.10

As the CVE record by GitHub_M states it, last updated September 5, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
RubyGemstzinfo< 0.3.610.3.61GHSA-5cm2-9h8c-rvfx
RubyGemstzinfo>= 1.0.0, < 1.2.101.2.10GHSA-5cm2-9h8c-rvfx

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 10, 2022. Summary: TZInfo relative path traversal vulnerability allows loading of arbitrary files.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
tzinfo projecttzinfobefore 0.3.61application
tzinfo projecttzinfofrom 1.0.0 before 1.2.10application
debiandebian linux10.0operating system

NVD analysis (status Modified), last modified June 17, 2026, 04:44 UTC.

How severe is CVE-2022-31163?

ScoreVersionVectorSource
High 7.5CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HGitHub_M
High 8.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2022-31163 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: total (CISA ADP, September 5, 2024)
EPSS
2.45% probability of exploitation activity in the next 30 days, percentile 84.9 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
May 18, 2022
Published
July 21, 2022, 13:30 UTC
CVE record updated
September 5, 2024, 14:09 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 04:44 UTC
Last checked
CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:47 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

Questions about CVE-2022-31163

Is CVE-2022-31163 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 2.45% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of tzinfo are affected by CVE-2022-31163?

tzinfo before 0.3.61 and tzinfo from 1.0.0 before 1.2.10, per the GitHub advisory GHSA-5cm2-9h8c-rvfx. The tables above give every range the sources list.

Which version fixes CVE-2022-31163?

0.3.61 and 1.2.10, per the GitHub advisory GHSA-5cm2-9h8c-rvfx. Check the vendor's advisory before you rely on it.

How severe is CVE-2022-31163?

High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2022-31163?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.