CVEfocus › CVE database › CVE-2024-35186

CVE-2024-35186gix traversal outside working tree enables arbitrary code execution

CVSS 8.8 HighEPSS 1.2% (higher than 69% of CVEs)Published 2024-05-23Updated 2024-08-02Assigner: GitHub_M

gitoxide is a pure Rust implementation of Git. During checkout, `gix-worktree-state` does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. This vulnerability leads to a major loss of confidentiality, integrity, and availability, but creating files outside a working tree without attempting to execute code can directly impact integrity as well. This vulnerability has been patched in version(s) 0.36.0.

CWE-23

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

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

13Fixed
1Fix pending
6Not affected

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
Ubuntu 26.04rust-gix-fsNot affected
vulnerable_code_not_present
Ubuntu 26.04rust-gix-indexNot affected
vulnerable_code_not_present
Ubuntu 26.04rust-gix-worktreeNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-gix-fsNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-gix-indexNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-gix-worktreeNot affected
vulnerable_code_not_present
Ubuntu 24.04rust-gix-fsFix pendingUBUNTU-CVE-2024-35186
Debian 14rust-gix-fsFixed0.11.3-1DEBIAN-CVE-2024-35186
Debian 14rust-gix-indexFixed0.33.1-1DEBIAN-CVE-2024-35186
Debian 14rust-gix-worktreeFixed0.34.1-1DEBIAN-CVE-2024-35186
Debian 13rust-gix-fsFixed0.11.3-1DEBIAN-CVE-2024-35186
Debian 13rust-gix-indexFixed0.33.1-1DEBIAN-CVE-2024-35186
Debian 13rust-gix-worktreeFixed0.34.1-1DEBIAN-CVE-2024-35186
crates.io librarygitoxideFixed0.36.0GHSA-7w47-3wg8-547c
crates.io librarygitoxide-coreFixed0.38.0GHSA-7w47-3wg8-547c
crates.io librarygixFixed0.63.0GHSA-7w47-3wg8-547c
crates.io librarygix-fsFixed0.11.0RUSTSEC-2024-0350
crates.io librarygix-indexFixed0.33.0GHSA-7w47-3wg8-547c
crates.io librarygix-worktreeFixed0.34.0GHSA-7w47-3wg8-547c
crates.io librarygix-worktree-stateFixed0.11.0GHSA-7w47-3wg8-547c

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.