{"schemaVersion":3,"id":"CVE-2025-22620","aliases":["UBUNTU-CVE-2025-22620","DEBIAN-CVE-2025-22620","CGA-8whw-gj3r-ghfg","CGA-wmfv-gc82-64wc","GHSA-fqmf-w4xh-33rh","RUSTSEC-2025-0001"],"status":"published","duplicateOf":null,"title":null,"description":"gitoxide is an implementation of git written in Rust. Prior to 0.17.0, gix-worktree-state specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations. This vulnerability is fixed in 0.17.0.","dates":{"published":"2025-01-20T15:38:32.388Z","modified":"2025-01-21T14:54:25.544Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00371,"percentile":0.2966,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.003000000000000008,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00368},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00371,"percentile":0.2966}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00371,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00371,"percentile":0.2966}]},"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-281","name":"Improper Preservation of Permissions","description":"The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/281.html"},{"id":"CWE-687","name":"Function Call With Incorrectly Specified Argument Value","description":"The product calls a function, procedure, or routine, but the caller specifies an argument that contains the wrong value, which may lead to resultant weaknesses.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/687.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-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.21.2-r0","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-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.21.2-r0","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.17.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.17.0 | ≥ 0.0.0-0, < 0.17.0","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-gix-worktree-state","name":"rust-gix-worktree-state","label":"rust-gix-worktree-state","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-gix-worktree-state","purlType":"deb","versions":[{"text":"< 0.11.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.1-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-gix-worktree-state","name":"rust-gix-worktree-state","label":"rust-gix-worktree-state","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-gix-worktree-state","purlType":"deb","versions":[{"text":"< 0.11.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.11.1-2","eol":null,"hubHref":null},{"vendor":"gitoxidelabs","product":"gitoxide","name":"gitoxide","label":"gitoxide","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.17.0","eol":null,"hubHref":"/vendor/gitoxidelabs/gitoxide"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh","label":"github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-22620","label":"ubuntu.com/security/CVE-2025-22620","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-22620","label":"www.cve.org/CVERecord?id=CVE-2025-22620","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0001.html","label":"rustsec.org/advisories/RUSTSEC-2025-0001.html","hostname":"rustsec.org","tags":["REPORT","WEB","Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-22620","label":"security-tracker.debian.org/tracker/CVE-2025-22620","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22620.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22620.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22620","label":"nvd.nist.gov/vuln/detail/CVE-2025-22620","hostname":"nvd.nist.gov","tags":["Advisory","WEB"]},{"url":"https://github.com/GitoxideLabs/gitoxide","label":"github.com/GitoxideLabs/gitoxide","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://crates.io/crates/gix-worktree-state","label":"crates.io/crates/gix-worktree-state","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://github.com/GitoxideLabs/gitoxide/pull/1764","label":"github.com/GitoxideLabs/gitoxide/pull/1764","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-fqmf-w4xh-33rh","label":"github.com/advisories/GHSA-fqmf-w4xh-33rh","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:14994-1","OPENSUSE-SU-2026:21558-1"],"duplicates":[],"related":["CGA-4VWP-C7CQ-2F9W","CGA-CG4V-5V2G-2745","OPENSUSE-SU-2025:14994-1","OPENSUSE-SU-2026:21558-1"]},"timeline":[{"kind":"published","date":"2025-01-20T15:38:32.388Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-01-21T14:54:25.544Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:06:44.813Z","stale":false,"partial":false}}