CVE-2025-31130

Source
https://cve.org/CVERecord?id=CVE-2025-31130
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-31130.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-31130
Aliases
Downstream
CGA (46)
DEBIAN (1)
MINI (1)
openSUSE (2)
UBUNTU (1)
Related
Published
2025-04-04T14:41:56Z
Modified
2026-11-11T10:47:28Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
gitoxide does not detect SHA-1 collision attacks
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-328"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31130.json"
}
References

Affected packages

Git / github.com/gitoxidelabs/gitoxide

Affected ranges

Type
GIT
Repo
https://github.com/gitoxidelabs/gitoxide
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "0.42.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "f253f02a6658b3b7612a50d56c71f5ae4da4ca21"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

TEST-0.*
TEST-0.0.0
cargo-smart-release-v0.*
cargo-smart-release-v0.1.0
cargo-smart-release-v0.10.0
cargo-smart-release-v0.10.1
cargo-smart-release-v0.10.2
cargo-smart-release-v0.12.0
cargo-smart-release-v0.12.1
cargo-smart-release-v0.13.0
cargo-smart-release-v0.14.0
cargo-smart-release-v0.15.0
cargo-smart-release-v0.16.0
cargo-smart-release-v0.16.1
cargo-smart-release-v0.17.0
cargo-smart-release-v0.18.0
cargo-smart-release-v0.19.0
cargo-smart-release-v0.2.0
cargo-smart-release-v0.2.1
cargo-smart-release-v0.2.2
cargo-smart-release-v0.2.3
cargo-smart-release-v0.2.4
cargo-smart-release-v0.20.0
cargo-smart-release-v0.3.0
cargo-smart-release-v0.3.1
cargo-smart-release-v0.4.0
cargo-smart-release-v0.5.0
cargo-smart-release-v0.5.1
cargo-smart-release-v0.5.2
cargo-smart-release-v0.5.3
cargo-smart-release-v0.5.4
cargo-smart-release-v0.5.5
cargo-smart-release-v0.5.6
cargo-smart-release-v0.6.0
cargo-smart-release-v0.7.0
cargo-smart-release-v0.8.0
cargo-smart-release-v0.9.0
Other
end-2020
the-beginning-2020
gitoxide-v0.*
gitoxide-v0.8.0
gitoxide-v0.8.1
v0.*
v0.1.0
v0.10.0
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.17.0
v0.18.0
v0.19.0
v0.20.0
v0.21.0
v0.22.0
v0.22.1
v0.23.0
v0.24.0
v0.25.0
v0.26.0
v0.27.0
v0.28.0
v0.3.0
v0.30.0
v0.31.0
v0.31.1
v0.33.0
v0.34.0
v0.35.0
v0.36.0
v0.37.0
v0.4.0
v0.5.0
v0.6.0
v0.7.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4
v0.9.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-31130.json"