HighGHSA-pphf-gfrm-v32rCVE-2022-47318
Code injection in ruby git
Published 17 Jan 2023 · Updated 19 Feb 2024
Is your project on an affected git?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
gitRubyGems
- Affected
- <1.13.0
- Fixed in
- 1.13.0
Update to the fixed version for your release line, for example:
bundle update --conservative git # Gemfile: '>= 1.13.0'Details
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.
Is GHSA-pphf-gfrm-v32r in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected git, and gives you the command that fixes it.
More advisories for git
- HighCVE-2022-46648ruby-git has potential remote code execution vulnerability · 9 Jan 2023
- CriticalCVE-2022-25648Command injection in ruby-git · 20 Apr 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-47318
- Linkgithub.com/ruby-git/ruby-git/pull/602
- Packagegithub.com/ruby-git/ruby-git
- Linkjvn.jp/en/jp/JVN16765254/index.html
- Linklists.debian.org/debian-lts-announce/2023/01/msg00043.html
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4KPFLSZPUM7APWVBRM5DCAY5OUVQBF4K
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.