CVE-2022-46648 ruby-git has potential remote code execution vulnerability
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
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-46648?
CVE-2022-46648 is a high-severity code injection vulnerability in Debian Debian Linux, published on 17 Jan 2023. Any signed-in user can exploit it over the network, 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-47318.
Weakness: CWE-94
Which versions are affected by CVE-2022-46648?
2 open source packages ship an affected version, including git. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
git RubyGems | From 1.2.0 | 1.13.0 |
git RubyGems | From 1.2.0 | 1.13.0 |
Products include Debian Debian Linux, Ruby-Git Project Ruby-Git.
How do I fix CVE-2022-46648?
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-46648 being exploited?
There is no known exploitation of CVE-2022-46648 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2022-46648, GHSA-pfpr-3463-c6jh, UBUNTU-CVE-2022-46648.