GHSA-794x-2rpg-rfgr Jujutsu does not have SHA-1 collision detection

Not scored Published

Attackers can exploit SHA-1 collisions to disguise malicious repository contents or bypass integrity checks in Jujutsu.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-794x-2rpg-rfgr?

GHSA-794x-2rpg-rfgr is a vulnerability in jj-cli, published on 7 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Summary

Jujutsu 0.28.0 and earlier rely on versions of gitoxide that use SHA-1 hash implementations without any collision detection, leaving them vulnerable to hash collision attacks.

Details

This is a result of the underlying CVE-2025-31130 / GHSA-2frx-2596-x5r6 vulnerability in the gitoxide library Jujutsu uses to interact with Git repositories; see that advisory for technical details. This separate advisory is being issued due to the downstream impact on users of Jujutsu.

Impact

An attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in Jujutsu’s logic to cause further vulnerabilities.

Which versions are affected by GHSA-794x-2rpg-rfgr?

4 open source packages ship an affected version, including jj-cli and jj-lib.

PackageAffectedFixed in
jj-cli crates.ioAll versions0.28.1
jj-cli crates.ioAll versions0.28.1
jj-lib crates.ioAll versions0.28.1
jj-lib crates.ioAll versions0.28.1

How do I fix GHSA-794x-2rpg-rfgr?

Upgrade jj-cli to 0.28.1 or later.

Is GHSA-794x-2rpg-rfgr being exploited?

There is no known exploitation of GHSA-794x-2rpg-rfgr in the wild and no public exploit code.

Sources

Is GHSA-794x-2rpg-rfgr in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free