CVE-2025-31130 — Vulnerability in gix-worktree-state — CVE Details
gitoxide does not detect SHA-1 collision attacks
Summary
Advisory Timeline
- First published April 4, 2025 (556 days ago).
- Last revised September 10, 2026 — 523 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p gix-worktree-state --precise 0.18.0
cargo update -p gix-revwalk --precise 0.19.0
cargo update -p gix-config --precise 0.44.0
cargo update -p gix-commitgraph --precise 0.27.0
cargo update -p gix-filter --precise 0.18.0
cargo update -p gix-protocol --precise 0.49.0
cargo update -p gix-object --precise 0.48.0
cargo update -p gitoxide-core --precise 0.46.0
cargo update -p gix-diff --precise 0.51.0
cargo update -p gix-discover --precise 0.39.0
cargo update -p gix-negotiate --precise 0.19.0
cargo update -p gix-ref --precise 0.51.0
cargo update -p gix-odb --precise 0.68.0
cargo update -p gix-traverse --precise 0.45.0
cargo update -p gix-pack --precise 0.58.0
cargo update -p gix-index --precise 0.39.0
cargo update -p gitoxide --precise 0.42.0
cargo update -p gix-status --precise 0.18.0
cargo update -p gix-dir --precise 0.13.0
cargo update -p gix-revision --precise 0.33.0
cargo update -p gix --precise 0.71.0
cargo update -p gix-fsck --precise 0.10.0
cargo update -p gix-worktree --precise 0.40.0
cargo update -p gix-merge --precise 0.4.0
cargo update -p gix-features --precise 0.41.0
cargo update -p gix-archive --precise 0.20.0
cargo update -p gix-blame --precise 0.1.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (27)
Affects 1 ecosystem: crates.io (27).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| gix-worktree-state | crates.io | All versions | 0.18.0 |
| gix-revwalk | crates.io | All versions | 0.19.0 |
| gix-config | crates.io | All versions | 0.44.0 |
| gix-commitgraph | crates.io | All versions | 0.27.0 |
| gix-filter | crates.io | All versions | 0.18.0 |
| gix-protocol | crates.io | All versions | 0.49.0 |
| gix-object | crates.io | All versions | 0.48.0 |
| gitoxide-core | crates.io | All versions | 0.46.0 |
| gix-diff | crates.io | All versions | 0.51.0 |
| gix-discover | crates.io | All versions | 0.39.0 |
| gix-negotiate | crates.io | All versions | 0.19.0 |
| gix-ref | crates.io | All versions | 0.51.0 |
| gix-odb | crates.io | All versions | 0.68.0 |
| gix-traverse | crates.io | All versions | 0.45.0 |
| gix-pack | crates.io | All versions | 0.58.0 |
| gix-index | crates.io | All versions | 0.39.0 |
| gitoxide | crates.io | All versions | 0.42.0 |
| gix-status | crates.io | All versions | 0.18.0 |
| gix-dir | crates.io | All versions | 0.13.0 |
| gix-revision | crates.io | All versions | 0.33.0 |
| gix | crates.io | All versions | 0.71.0 |
| gix-fsck | crates.io | All versions | 0.10.0 |
| gix-worktree | crates.io | All versions | 0.40.0 |
| gix-merge | crates.io | All versions | 0.4.0 |
| gix-features | crates.io | All versions | 0.41.0 |
| gix-archive | crates.io | All versions | 0.20.0 |
| gix-blame | crates.io | All versions | 0.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-328
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-31130ADVISORY
- https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21WEB
- https://github.com/GitoxideLabs/gitoxidePACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0021.htmlWEB
Frequently Asked Questions
- What is CVE-2025-31130?
- gitoxide does not detect SHA-1 collision attacks This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.8/10).
- How do I check if my project is affected by CVE-2025-31130?
- CVE-2025-31130 affects gix-worktree-state, gix-revwalk and gix-config (and 24 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-31130 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2024-35186HIGH
gix traversal outside working tree enables arbitrary code execution
- CVE-2026-102821MEDIUM
Russh: Unbounded memory exhaustion via CHANNEL_OPEN flood during a client-stalled rekey
- CVE-2024-35197MEDIUM
gix refs and paths with reserved Windows device names access the devices
- CVE-2026-102820MEDIUM
pageant: Out-of-bounds read / oversized allocation in `pageant` MemoryMap::read via a malicious Pageant agent (Windows)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies