CVE-2024-35197gix refs and paths with reserved Windows device names access the devices
gitoxide is a pure Rust implementation of Git. On Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. If Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. A minor degradation in availability may also be possible, such as with a very large file named `CON`, though the user could interrupt the application.
What to do
Fixed builds are available from crates.io: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| crates.io library | gitoxide | Fixed | 0.36.0 | GHSA-49jc-r788-3fc9 |
| crates.io library | gitoxide-core | Fixed | 0.38.0 | GHSA-49jc-r788-3fc9 |
| crates.io library | gix | Fixed | 0.63.0 | GHSA-49jc-r788-3fc9 |
| crates.io library | gix-index | Fixed | 0.33.0 | RUSTSEC-2024-0352 |
| crates.io library | gix-ref | Fixed | 0.44.0 | RUSTSEC-2024-0351 |
| crates.io library | gix-worktree | Fixed | 0.34.0 | RUSTSEC-2024-0353 |
| crates.io library | gix-worktree-state | Fixed | 0.11.0 | GHSA-49jc-r788-3fc9 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Byron gitoxide: affected: < 0.36.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.