
CVE catalog
CVE-2022-31163
ruby-tzinfo: CVE-2022-31163
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.45% · Oct 25, 2026
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`.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-tzinfo | sid | 2.0.6-2 | fixed |
| Debian | ruby-tzinfo | forky | 2.0.6-2 | fixed |
| Debian | ruby-tzinfo | trixie | 2.0.6-1 | fixed |
| Debian | ruby-tzinfo | bookworm | 2.0.5-1 | fixed |
| Suse | rubygem-tzinfo | linux enterprise high availability extension 15 | 1.2.4-150000.3.3.1 | fixed |
| Suse | rubygem-tzinfo | linux enterprise high availability extension 15 sp1 | 1.2.4-150000.3.3.1 | fixed |
| Suse | rubygem-tzinfo | linux enterprise high availability extension 15 sp2 | 1.2.4-150000.3.3.1 | fixed |
| Suse | rubygem-tzinfo | linux enterprise high availability extension 15 sp3 | 1.2.4-150000.3.3.1 | fixed |
| Suse | rubygem-tzinfo | linux enterprise high availability extension 15 sp4 | 1.2.4-150000.3.3.1 | fixed |
| Opensuse | rubygem-tzinfo | leap 15.3 | 1.2.4-150000.3.3.1 | fixed |
| Opensuse | rubygem-tzinfo | leap 15.4 | 1.2.4-150000.3.3.1 | fixed |
| Suse | rubygem-tzinfo | openstack cloud crowbar 8 | 1.2.2-3.3.1 | fixed |
| Suse | rubygem-tzinfo | openstack cloud crowbar 9 | 1.2.2-3.3.1 | fixed |
| Opensuse | ruby3.2-rubygem-tzinfo-1.2 | tumbleweed | 1.2.10-1.4 | fixed |
| Opensuse | rubygem-tzinfo-1.2 | tumbleweed | 1.2.11-1.5 | fixed |
| Opensuse | rubygem-tzinfo-1.2 | tumbleweed | 1.2.10-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-tzinfo | source | sid | 2.0.4-2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-tzinfo | source | forky | 2.0.4-2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-tzinfo | source | trixie | 2.0.4-2 | not yet assigned | Not reported | Not reported |
| Debian | ruby-tzinfo | source | bookworm | 2.0.4-2 | not yet assigned | Not reported | Not reported |
| Suse | rubygem-tzinfo | rpm | linux enterprise high availability extension 15 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | linux enterprise high availability extension 15 sp1 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | linux enterprise high availability extension 15 sp2 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | linux enterprise high availability extension 15 sp3 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | linux enterprise high availability extension 15 sp4 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Opensuse | rubygem-tzinfo | rpm | leap 15.3 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Opensuse | rubygem-tzinfo | rpm | leap 15.4 | 1.2.4-150000.3.3.1 | Not reported | SUSE-SU-2022:2592-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | openstack cloud crowbar 8 | 1.2.2-3.3.1 | Not reported | SUSE-SU-2022:2765-1 | Not reported |
| Suse | rubygem-tzinfo | rpm | openstack cloud crowbar 9 | 1.2.2-3.3.1 | Not reported | SUSE-SU-2022:2765-1 | Not reported |
| Opensuse | ruby3.2-rubygem-tzinfo-1.2 | rpm | tumbleweed | 1.2.10-1.4 | Not reported | OPENSUSE-SU-2024:13171-1 | Not reported |
| Opensuse | rubygem-tzinfo-1.2 | rpm | tumbleweed | 1.2.11-1.5 | Not reported | OPENSUSE-SU-2024:14178-1 | Not reported |
| Opensuse | rubygem-tzinfo-1.2 | rpm | tumbleweed | 1.2.10-1.1 | Not reported | OPENSUSE-SU-2024:12249-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-tzinfo]Fixed
Details (2)
2.0.5-1· all · bookwormFixed · Fixed:
2.0.4-2dsa · ruby-tzinfo · debian · bookworm
2.0.5-1· all · bookwormFixed · Fixed:
2.0.4-2dsa · ruby-tzinfo · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_2592-1.json]
- [https://osv.dev/vulnerability/DLA-3077-1]
- [https://osv.dev/vulnerability/DLA-3866-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:2592-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:2765-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12249-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13171-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14178-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-31163]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-31163.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1143.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]