{"id":"GHSA-794x-2rpg-rfgr","aliases":["GHSA-794x-2rpg-rfgr"],"related":[],"kind":"vulnerability","state":"published","title":"Jujutsu does not have SHA-1 collision detection","summary":"### Summary\nJujutsu 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.\n\n### Details\nThis is a result of the underlying [CVE-2025-31130 / GHSA-2frx-2596-x5r6](https://github.com/GitoxideLabs/gitoxide/security/advisories/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.\n\n### Impact\nAn attacker with the ability to mount a collision attack on SHA-1 like the [SHAttered](https://shattered.io/) or [SHA-1 is a Shambles](https://sha-mbles.github.io/) 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\nJujutsu 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.\n\n### Details\nThis is a result of the underlying [CVE-2025-31130 / GHSA-2frx-2596-x5r6](https://github.com/GitoxideLabs/gitoxide/security/advisories/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.\n\n### Impact\nAn attacker with the ability to mount a collision attack on SHA-1 like the [SHAttered](https://shattered.io/) or [SHA-1 is a Shambles](https://sha-mbles.github.io/) 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.","format":"markdown","source":"ghsa"}],"published":"2025-04-07T16:40:25.000Z","modified":"2025-04-07T16:40:25.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-328"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.1"}],"ecosystem":"crates.io","package":"jj-lib","purl":"pkg:cargo/jj-lib","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.28.1"}],"ecosystem":"crates.io","package":"jj-cli","purl":"pkg:cargo/jj-cli","source":"ghsa"}],"references":[{"url":"https://github.com/jj-vcs/jj/security/advisories/GHSA-794x-2rpg-rfgr","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jj-vcs/jj/commit/350da7d013773377aec0d3a4bf4374d3c941460e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jj-vcs/jj","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-794x-2rpg-rfgr","url":"https://github.com/advisories/GHSA-794x-2rpg-rfgr","licence":"CC-BY-4.0","modified":"2025-04-07T16:40:25.000Z"}],"updatedAt":"2026-11-25T22:56:42.320Z"}