# CVE-2025-22620: gix-worktree-state nonexclusive checkout sets executable files world-writable

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-01-18T12:00:00.000Z
- Modified: 2026-11-09T11:00:02.606Z
- Also known as: GHSA-fqmf-w4xh-33rh, RUSTSEC-2025-0001
- Weaknesses: CWE-281, CWE-687
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- GitoxideLabs gitoxide: < 0.17.0
- gix-worktree-state (crates.io): before 0.17.0; from 0.0.0-0 before 0.17.0

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22620> (advisory, web)
- <https://github.com/GitoxideLabs/gitoxide> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0001.html> (advisory, web)
- <https://crates.io/crates/gix-worktree-state> (package)
- <https://github.com/GitoxideLabs/gitoxide/pull/1764> (web)

## Sources

- CVE List: [CVE-2025-22620](https://www.cve.org/CVERecord?id=CVE-2025-22620), CVE Terms of Use, modified 2025-01-21
- GitHub Advisory Database: [GHSA-fqmf-w4xh-33rh](https://github.com/advisories/GHSA-fqmf-w4xh-33rh), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0001](https://rustsec.org/advisories/RUSTSEC-2025-0001.html), CC0-1.0, modified 2026-11-09
- NVD: [CVE-2025-22620](https://nvd.nist.gov/vuln/detail/CVE-2025-22620), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22620 · Whole record: https://cve.day/CVE-2025-22620.json · Rebuilt by cve.day 2026-11-25T22:58:53.444Z
