CVE-2025-31130

GHSA-2frx-2596-x5r6 · RUSTSEC-2025-0021 · published 3 Apr 2025 · updated 9 Nov 2026

gitoxide does not detect SHA-1 collision attacks

6.8MediumCVSS 6.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in gix-features 0.41.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitoxideLabs<0.42.0
cargo: gix-features>=0.0.0-0 <0.41.00.41.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-31130 severity on Zeptric[![CVE-2025-31130](https://zeptric.io/badge/cve/CVE-2025-31130.svg)](https://zeptric.io/cve/CVE-2025-31130)