# CVE-2022-47318: Code injection in ruby git

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.48%, higher than 74% of CVEs (2026-12-01)
- Published: 2023-01-17T00:00:00.000Z
- Modified: 2026-06-17T05:13:16.580Z
- Also known as: GHSA-pphf-gfrm-v32r
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: jpcert

## Description

ruby-git versions prior to v1.13.0 allows a remote authenticated attacker to execute an arbitrary ruby code by having a user to load a repository containing a specially crafted filename to the product. This vulnerability is different from CVE-2022-46648.

(As written by CVE List.)

## Affected

- ruby-git ruby-git: versions prior to v1.13.0
- git (RubyGems): before 1.13.0
- ruby-git_project ruby-git: before 1.13.0
- debian debian_linux: 10.0
- fedoraproject fedora: 37

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ruby-git/ruby-git> (package, product, third-party-advisory)
- <https://github.com/ruby-git/ruby-git/pull/602> (patch, third-party-advisory, web)
- <https://jvn.jp/en/jp/JVN16765254/index.html> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4KPFLSZPUM7APWVBRM5DCAY5OUVQBF4K/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-47318> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4KPFLSZPUM7APWVBRM5DCAY5OUVQBF4K> (web)

## Sources

- CVE List: [CVE-2022-47318](https://www.cve.org/CVERecord?id=CVE-2022-47318), CVE Terms of Use, modified 2025-04-04
- GitHub Advisory Database: [GHSA-pphf-gfrm-v32r](https://github.com/advisories/GHSA-pphf-gfrm-v32r), CC-BY-4.0, modified 2024-02-19
- NVD: [CVE-2022-47318](https://nvd.nist.gov/vuln/detail/CVE-2022-47318), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-47318 · Whole record: https://cve.day/CVE-2022-47318.json · Rebuilt by cve.day 2026-11-25T22:58:18.224Z
