# CVE-2025-31130: gitoxide does not detect SHA-1 collision attacks

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-04 · Modified: 2026-01-23
- Aliases: UBUNTU-CVE-2025-31130, DEBIAN-CVE-2025-31130, CGA-23wm-fm7j-rvwh, CGA-2gj9-8446-p664, CGA-2gmq-g25j-q4rv, CGA-2w2j-f2q2-5xmw, CGA-379j-7r8h-96mm, CGA-44wx-p48f-f3gq, CGA-47rj-8gch-87p4, CGA-5g46-j426-8h9w, CGA-6r68-4mrv-29g7, CGA-6xh4-9j34-m258, CGA-746r-rccj-mgjq, CGA-7cww-rf6j-wcgm, CGA-7cx7-gh39-4gw6, CGA-7r2w-vjjx-7cfm, CGA-8mm7-mc9x-4526, CGA-96g5-45hp-gwvg, CGA-97qg-vc29-2fmf, CGA-9xhw-73rh-rfrx, CGA-cv8f-f662-vq2w, CGA-cvxg-grgq-pfvw, CGA-f436-4rcr-8gv7, CGA-f7hp-94rr-wxmr, CGA-g7h2-xvfq-q6xq, CGA-g7m4-hwx2-3r24, CGA-g9r6-jqc4-r4jc, CGA-h7f7-35j7-8fgq, CGA-h8p9-45qx-9mvr, CGA-h9xv-9r7f-p8mf, CGA-hc75-jwgm-r42v, CGA-hpvv-wrqh-gpmp, CGA-m5f8-f6mw-53pg, CGA-p437-5p5h-h9r4, CGA-pf7j-wf5h-7vxw, CGA-pm7h-vfr7-jhq5, CGA-prmm-xcgf-hxx8, CGA-q39w-h38w-68px, CGA-r733-w55r-fq83, CGA-vj27-mh3v-x4pv, CGA-w457-h22h-pmxv, CGA-w4g8-9773-777j, CGA-w69r-f7h8-c5p9, CGA-w9gx-32q8-89hq, CGA-wwqm-452j-wc43, CGA-x358-vvgm-j78v, GHSA-2frx-2596-x5r6, RUSTSEC-2025-0021
- Record: https://cvemate.com/vulnerability/CVE-2025-31130 · JSON: https://cvemate.com/vulnerability/CVE-2025-31130/json

## Description

```text
gitoxide is an implementation of git written in Rust. Before 0.42.0, gitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. gitoxide uses the sha1_smol or sha1 crate, both of which implement standard SHA-1 without any mitigations for collision attacks. This means that two distinct Git objects with colliding SHA-1 hashes would break the Git object model and integrity checks when used with gitoxide. This vulnerability is fixed in 0.42.0.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- EPSS: 0.291%, percentile 23.295%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 38)

- chainguard cargo-audit (Chainguard): \< 0.22.0-r0
- chainguard cargo-c (Chainguard): \< 0.10.23-r1
- chainguard helix (Chainguard): \< 25.01.1-r1
- chainguard starship (Chainguard): \< 1.24.0-r0
- wolfi cargo-audit (Wolfi): \< 0.22.0-r0
- wolfi cargo-c (Wolfi): \< 0.10.23-r1
- wolfi helix (Wolfi): \< 25.01.1-r1
- wolfi starship (Wolfi): \< 1.24.0-r0
- Crates.Io gitoxide (Crates.Io): \< 0.42.0
- Crates.Io gitoxide-core (Crates.Io): \< 0.46.0
- Crates.Io gix (Crates.Io): \< 0.71.0
- Crates.Io gix-archive (Crates.Io): \< 0.20.0
- Crates.Io gix-blame (Crates.Io): \< 0.1.0
- Crates.Io gix-commitgraph (Crates.Io): \< 0.27.0
- Crates.Io gix-config (Crates.Io): \< 0.44.0
- Crates.Io gix-diff (Crates.Io): \< 0.51.0
- Crates.Io gix-dir (Crates.Io): \< 0.13.0
- Crates.Io gix-discover (Crates.Io): \< 0.39.0
- Crates.Io gix-features (Crates.Io): \< 0.41.0 \| ≥ 0.0.0-0, \< 0.41.0
- Crates.Io gix-filter (Crates.Io): \< 0.18.0

## References

- <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6>
- <https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21>
- <https://ubuntu.com/security/CVE-2025-31130>
- <https://www.cve.org/CVERecord?id=CVE-2025-31130>
- <https://rustsec.org/advisories/RUSTSEC-2025-0021.html>
- <https://github.com/GitoxideLabs/gitoxide/commit/4660f7a6f71873311f68f170b0f1f6659a02829d>
- <https://security-tracker.debian.org/tracker/CVE-2025-31130>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31130.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31130>
- <https://github.com/GitoxideLabs/gitoxide>
- <https://crates.io/crates/gix-features>
- <https://github.com/advisories/GHSA-2frx-2596-x5r6>

---

Data as of 2026-12-05T07:29:59.860Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
