{"schemaVersion":3,"id":"CVE-2024-35186","aliases":["UBUNTU-CVE-2024-35186","DEBIAN-CVE-2024-35186","CGA-9qq9-h865-8j4x","CGA-vj5v-jc78-phc4","openSUSE-SU-2024:13987-1","GHSA-7w47-3wg8-547c","RUSTSEC-2024-0348","RUSTSEC-2024-0349","RUSTSEC-2024-0350"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-05-23T08:55:20.653Z","modified":"2024-08-02T03:07:46.876Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00816,"percentile":0.56596,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00816},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00816,"percentile":0.56596}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00816,"percentile":0.56596}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-23","name":"Relative Path Traversal","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as \"..\" that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/23.html"}],"affected":[{"vendor":"chainguard","product":"cargo-audit","name":"cargo-audit","label":"cargo-audit","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cargo-audit","purlType":"apk","versions":[{"text":"< 0.21.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.21.2-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"cargo-audit","name":"cargo-audit","label":"cargo-audit","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/cargo-audit","purlType":"apk","versions":[{"text":"< 0.21.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.21.2-r1","eol":null,"hubHref":null},{"vendor":"byron","product":"gitoxide","name":"gitoxide","label":"gitoxide","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.36.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.36.0","eol":null,"hubHref":"/vendor/byron/gitoxide"},{"vendor":"Crates.Io","product":"gitoxide","name":"gitoxide","label":"gitoxide","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gitoxide","purlType":"cargo","versions":[{"text":"< 0.36.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.36.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gitoxide-core","name":"gitoxide-core","label":"gitoxide-core","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gitoxide-core","purlType":"cargo","versions":[{"text":"< 0.38.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.38.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix","name":"gix","label":"gix","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix","purlType":"cargo","versions":[{"text":"< 0.63.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.63.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix-fs","name":"gix-fs","label":"gix-fs","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix-fs","purlType":"cargo","versions":[{"text":"< 0.11.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.0 | ≥ 0.0.0-0, < 0.11.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix-index","name":"gix-index","label":"gix-index","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix-index","purlType":"cargo","versions":[{"text":"< 0.33.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.33.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.33.0 | ≥ 0.0.0-0, < 0.33.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix-worktree","name":"gix-worktree","label":"gix-worktree","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix-worktree","purlType":"cargo","versions":[{"text":"< 0.34.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.34.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.34.0 | ≥ 0.0.0-0, < 0.34.0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix-worktree-state","name":"gix-worktree-state","label":"gix-worktree-state","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix-worktree-state","purlType":"cargo","versions":[{"text":"< 0.11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.0","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-gix-fs","name":"rust-gix-fs","label":"rust-gix-fs","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-gix-fs","purlType":"deb","versions":[{"text":"< 0.11.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.3-1","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-gix-index","name":"rust-gix-index","label":"rust-gix-index","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-gix-index","purlType":"deb","versions":[{"text":"< 0.33.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.33.1-1","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-gix-worktree","name":"rust-gix-worktree","label":"rust-gix-worktree","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-gix-worktree","purlType":"deb","versions":[{"text":"< 0.34.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.34.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-gix-fs","name":"rust-gix-fs","label":"rust-gix-fs","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-gix-fs","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"opensuse","product":"gitoxide&distro=openSUSE Tumbleweed","name":"gitoxide","label":"gitoxide&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/gitoxide&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 0.36.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.36.0-1.1","eol":null,"hubHref":null}],"affectedCount":15,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c","label":"github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2024-35186","label":"ubuntu.com/security/CVE-2024-35186","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-35186","label":"www.cve.org/CVERecord?id=CVE-2024-35186","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0348.html","label":"rustsec.org/advisories/RUSTSEC-2024-0348.html","hostname":"rustsec.org","tags":["REPORT","WEB","Advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0349.html","label":"rustsec.org/advisories/RUSTSEC-2024-0349.html","hostname":"rustsec.org","tags":["REPORT","Advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0350.html","label":"rustsec.org/advisories/RUSTSEC-2024-0350.html","hostname":"rustsec.org","tags":["REPORT","WEB","Advisory"]},{"url":"https://github.com/advisories/GHSA-7w47-3wg8-547c","label":"github.com/advisories/GHSA-7w47-3wg8-547c","hostname":"github.com","tags":["REPORT","Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-35186","label":"security-tracker.debian.org/tracker/CVE-2024-35186","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35186.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35186.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35186","label":"nvd.nist.gov/vuln/detail/CVE-2024-35186","hostname":"nvd.nist.gov","tags":["Advisory","WEB"]},{"url":"https://www.suse.com/security/cve/CVE-2024-35186","label":"www.suse.com/security/cve/CVE-2024-35186","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://github.com/Byron/gitoxide","label":"github.com/Byron/gitoxide","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://crates.io/crates/gix-index","label":"crates.io/crates/gix-index","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401","label":"github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401","hostname":"github.com","tags":["WEB"]},{"url":"https://crates.io/crates/gix-worktree","label":"crates.io/crates/gix-worktree","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://crates.io/crates/gix-fs","label":"crates.io/crates/gix-fs","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-2FMX-8FHG-29PR","CGA-R58C-CWV4-4PC9"]},"timeline":[{"kind":"published","date":"2024-05-23T08:55:20.653Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T03:07:46.876Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T04:58:32.652Z","stale":false,"partial":false}}