CVE-2025-31130
SHA-1 collision attacks are not detected
6.8
MEDIUM
CVSS 3.1
EPSS 0.24%
Description
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.
How to fix CVE-2025-31130
To remediate CVE-2025-31130, upgrade the affected package to a fixed version below.
- —upgrade to 0.39.1-2 or later
- —upgrade to 0.42.0 or later
- —upgrade to 0.46.0 or later
- —upgrade to 0.71.0 or later
- —upgrade to 0.20.0 or later
- —upgrade to 0.1.0 or later
- —upgrade to 0.27.0 or later
- —upgrade to 0.44.0 or later
- —upgrade to 0.51.0 or later
- —upgrade to 0.13.0 or later
- —upgrade to 0.39.0 or later
- —upgrade to 0.41.0 or later
- —upgrade to 0.41.0 or later
- —upgrade to 0.18.0 or later
- —upgrade to 0.10.0 or later
Is CVE-2025-31130 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (29)
- from 0, < 0.39.1-2
- from 0, < 0.42.0
- from 0, < 0.46.0
- from 0, < 0.71.0
- from 0, < 0.20.0
- from 0, < 0.1.0
- from 0, < 0.27.0
- from 0, < 0.44.0
- from 0, < 0.51.0
- from 0, < 0.13.0
- from 0, < 0.39.0
- from 0, < 0.41.0
- >= 0.0.0-0, < 0.41.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |