# TZInfo relative path traversal vulnerability allows loading of arbitrary files

Advisory record · `GHSA-5cm2-9h8c-rvfx`

- **Identifiers:** `GHSA-5cm2-9h8c-rvfx` · `CVE-2022-31163`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html) · [CWE-23](https://cwe.mitre.org/data/definitions/23.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 21 Jul 2022
- **Updated:** 8 Nov 2023
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Jul 2022, 21:39 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `tzinfo` (RubyGems): affected `<0.3.61 || >=1.0.0, <1.2.10`; fixed in `0.3.61`, `1.2.10`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.024, the 84th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 21 Jul 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-5cm2-9h8c-rvfx](https://github.com/advisories/GHSA-5cm2-9h8c-rvfx)
- [OSV: GHSA-5cm2-9h8c-rvfx](https://osv.dev/vulnerability/GHSA-5cm2-9h8c-rvfx)
- <https://github.com/tzinfo/tzinfo/security/advisories/GHSA-5cm2-9h8c-rvfx>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31163>
- <https://github.com/tzinfo/tzinfo/commit/9905ca93abf7bf3e387bd592406e403cd18334c7>
- <https://github.com/tzinfo/tzinfo/commit/9eddbb5c0e682736f61d0dd803b6031a5db9eadf>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tzinfo/CVE-2022-31163.yml>
- <https://github.com/tzinfo/tzinfo>
- <https://github.com/tzinfo/tzinfo/releases/tag/v0.3.61>
- <https://github.com/tzinfo/tzinfo/releases/tag/v1.2.10>
- <https://lists.debian.org/debian-lts-announce/2022/08/msg00009.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-5cm2-9h8c-rvfx>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-5cm2-9h8c-rvfx/>. Everything for agents: <https://agentprime.io/llms.txt>.
