p PatchFirst

CVE-2025-31130

CVE-2025-31130 · gitoxide does not detect SHA-1 collision attacks

CVSS 6.8 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-gix-features"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • gitoxide

    Versions
    • < 0.42.0: Affected

    No fix published

  • rust-gix-features Debian 13

    Affected ranges
    • ECOSYSTEM: < 0.39.1-2

    Update to 0.39.1-2

  • rust-gix-features Debian 14

    Affected ranges
    • ECOSYSTEM: < 0.39.1-2

    Update to 0.39.1-2

  • rust-gix-features Ubuntu 24.04 LTS

    Versions
    • 0.36.0-1
    • 0.36.0-2
    • 0.36.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-features Ubuntu 25.10

    Versions
    • 0.39.1-1
    • 0.39.1-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-features Ubuntu 26.10

    Versions
    • 0.43.1-1
    • 0.48.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-features Ubuntu 26.04 LTS

    Versions
    • 0.39.1-2
    • 0.43.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →