CVE & CISA-KEV Catalog

CVE-2022-31163

HIGHEPSS 81th pctl
7.5
CVSS v3
NVD

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

How to fix

Remediation Available
ruby-tzinfoDebian
Fixed in:1.2.6-1+deb11u1CVE-2022-31163
Fixed in:2.0.4-2CVE-2022-31163
Fixed in:2.0.4-2CVE-2022-31163
Fixed in:2.0.4-2CVE-2022-31163

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

2.23%probability of exploitation in 30 days
81stpercentile

Elevated risk: more likely to be exploited than 81% of all known CVEs.

References

Related Vulnerabilities

Other CWE-22 (Path Traversal) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-23897Critical9.8100%KEV + RansomFix
CVE-2023-32315High8.6100%KEVFix
CVE-2022-29464Critical9.8100%KEV + Ransom-
CVE-2021-26086Medium5.3100%KEVFix
CVE-2021-22005Critical9.8100%KEV + RansomFix
CVE-2020-5902Critical9.8100%KEV + RansomFix

Common questions

How do I fix CVE-2022-31163?

Upgrade ruby-tzinfo on debian 11 to 1.2.6-1+deb11u1 or later.

Is CVE-2022-31163 being actively exploited?

Not that we know of. CVE-2022-31163 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.2% is the estimated probability that it will be exploited in the next 30 days. That is higher than 81% of all scored CVEs.

How severe is CVE-2022-31163?

CVE-2022-31163 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-31163 affect?

Published advisories record a fix for ruby-tzinfo (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-31163
CVE-2022-31163 severity badge

Markdown

[![CVE-2022-31163](https://tridentstack.com/cve/badge/CVE-2022-31163.svg)](https://tridentstack.com/cve/CVE-2022-31163)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31163"><img src="https://tridentstack.com/cve/badge/CVE-2022-31163.svg" alt="CVE-2022-31163"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.