CVEfocus › CVE database › CVE-2024-35197

CVE-2024-35197gix refs and paths with reserved Windows device names access the devices

CVSS 5.4 MediumEPSS 0.6% (higher than 45% of CVEs)Published 2024-05-23Updated 2024-08-02Assigner: GitHub_M

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.

CWE-67

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

7Fixed

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.

ReleasePackageStatusFixed versionAdvisory
crates.io librarygitoxideFixed0.36.0GHSA-49jc-r788-3fc9
crates.io librarygitoxide-coreFixed0.38.0GHSA-49jc-r788-3fc9
crates.io librarygixFixed0.63.0GHSA-49jc-r788-3fc9
crates.io librarygix-indexFixed0.33.0RUSTSEC-2024-0352
crates.io librarygix-refFixed0.44.0RUSTSEC-2024-0351
crates.io librarygix-worktreeFixed0.34.0RUSTSEC-2024-0353
crates.io librarygix-worktree-stateFixed0.11.0GHSA-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.

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.