CVE-2022-47318 Code injection in ruby git
An attacker can execute arbitrary Ruby code by tricking a user into loading a repository with a specially crafted filename.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-47318?
CVE-2022-47318 is a high-severity code injection vulnerability in Debian Debian Linux, published on 17 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2022-47318?
2 open source packages ship an affected version, including git. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
git RubyGems | All versions | 1.13.0 |
git RubyGems | All versions | 1.13.0 |
Products include Debian Debian Linux, Fedoraproject Fedora, Ruby-Git Project Ruby-Git.
How do I fix CVE-2022-47318?
Upgrade git to 1.13.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-47318 being exploited?
There is no known exploitation of CVE-2022-47318 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-47318, GHSA-pphf-gfrm-v32r, UBUNTU-CVE-2022-47318.