CVE-2025-31130 Details
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.
A vulnerability exists in Gitoxide versions prior to 0.42.0, where the application uses SHA-1 hash implementations from the sha1_smol or sha1 crate without any collision detection. This oversight leaves Gitoxide susceptible to hash collision attacks, allowing two distinct Git objects to be created with colliding SHA-1 hashes. Such collisions would disrupt the Git object model and integrity checks within Gitoxide. The vulnerability arises because Gitoxide does not implement any mitigations against SHA-1 collisions, unlike standard Git, which has begun transitioning to SHA-256 hashes.
Users can upgrade to Gitoxide version 0.42.0 or later to address this vulnerability. For those using Gitoxide as a library, the same versioning applies.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 4, 2025CISA-ADP
Assessed Apr 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6 | CISA-ADP | AdvisoryBundleRemedyVendor |
| https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21 | [email protected] | |
| https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6 | [email protected] | AdvisoryBundleRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-328 | Use of Weak Hash | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitoxide | < 0.42.0 (semver) |
CPE
Remediation
| |
| gitoxide-core | All versions |
CPE
Remediation
| |
| gix | All versions |
CPE
Remediation
| |
| gix-archive | All versions |
CPE
Remediation
| |
| gix-blame | All versions |
CPE
Remediation
| |
| gix-commitgraph | All versions |
CPE
Remediation
| |
| gix-config | All versions |
CPE
Remediation
| |
| gix-diff | All versions |
CPE
Remediation
| |
| gix-dir | All versions |
CPE
Remediation
| |
| gix-discover | All versions |
CPE
Remediation
| |
| gix-features | All versions |
CPE
Remediation
| |
| gix-filter | All versions |
CPE
Remediation
| |
| gix-fsck | All versions |
CPE
Remediation
| |
| gix-index | All versions |
CPE
Remediation
| |
| gix-merge | All versions |
CPE
Remediation
| |
| gix-negotiate | All versions |
CPE
Remediation
| |
| gix-object | All versions |
CPE
Remediation
| |
| gix-odb | All versions |
CPE
Remediation
| |
| gix-pack | All versions |
CPE
Remediation
| |
| gix-protocol | All versions |
CPE
Remediation
| |
| gix-ref | All versions |
CPE
Remediation
| |
| gix-revision | All versions |
CPE
Remediation
| |
| gix-revwalk | All versions |
CPE
Remediation
| |
| gix-status | All versions |
CPE
Remediation
| |
| gix-traverse | All versions |
CPE
Remediation
| |
| gix-worktree | All versions |
CPE
Remediation
| |
| gix-worktree-state | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 23, 2026 | CVE Modified | [email protected] |
| Apr 4, 2025 | New CVE Received | [email protected] |
| Apr 4, 2025 | CVE Modified | CISA-ADP |
Volerion