Vulnerability
CVE-2025-31130
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.
50 advisories report this vulnerability, across 6 ecosystems.
Advisories
- 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
-
DEBIAN-CVE-2025-31130
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…
-
GHSA-2frx-2596-x5r6
gitoxide does not detect SHA-1 collision attacks
-
RUSTSEC-2025-0021
SHA-1 collision attacks are not detected
-
UBUNTU-CVE-2025-31130
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…
-
openSUSE-SU-2025:14994-1
gitoxide-0.42.0-1.1 on GA media
-
openSUSE-SU-2026:21558-1
Security update for gitoxide