CVE-2024-51990 Path traversal via crafted Git repositories in jj
Attackers can craft Git repositories to force jj to write files outside the intended directory, potentially modifying system files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-51990?
CVE-2024-51990 is a critical path traversal vulnerability in martinvonz jj, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
jj, or Jujutsu, is a Git-compatible VCS written in rust. In affected versions specially crafted Git repositories can cause `jj` to write files outside the clone. This issue has been addressed in version 0.23.0. Users are advised to upgrade. Users unable to upgrade should avoid cloning repos from unknown sources.
Weakness: CWE-22
Which versions are affected by CVE-2024-51990?
2 open source packages ship an affected version, including jj-lib.
| Package | Affected | Fixed in |
|---|---|---|
jj-lib crates.io | All versions | 0.23.0 |
jj-lib crates.io | All versions | 0.23.0 |
Linux distribution packages (1)
jujutsu openSUSE:Tumbleweed | All versions | 0.23.0-1.1 |
How do I fix CVE-2024-51990?
Upgrade jj-lib to 0.23.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-51990 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-51990 exists.
Sources
Also known as GHSA-88h5-6w7m-5w56, openSUSE-SU-2024:14485-1.