# CVE-2026-73624: GitPython before 3.1.54 Arbitrary File Overwrite via diff

- Severity: High 7.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA: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.55%, higher than 40% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T16:41:20.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-fjr4-x663-mwxc, PYSEC-2026-3995
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or output kwarg to write patch content to attacker-chosen file paths at process privilege level.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.54 (not affected: 3.1.54)
- gitpython (PyPI): before 3.1.54
- gitpython_project gitpython: before 3.1.54

## Every score

- VulnCheck: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxc> (exploit, evidence, mitigation, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-diff> (advisory, third-party-advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2180> (web)
- <https://github.com/gitpython-developers/GitPython/commit/1d51b891d7f236044a6aa17498ec682b63dad6e6> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.54> (web)

## Sources

- CVE List: [CVE-2026-73624](https://www.cve.org/CVERecord?id=CVE-2026-73624), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-fjr4-x663-mwxc](https://github.com/advisories/GHSA-fjr4-x663-mwxc), CC-BY-4.0, modified 2026-09-29
- NVD: [CVE-2026-73624](https://nvd.nist.gov/vuln/detail/CVE-2026-73624), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3995](https://osv.dev/vulnerability/PYSEC-2026-3995), CC-BY-4.0, modified 2026-09-29

---

Page: https://cve.day/CVE-2026-73624 · Whole record: https://cve.day/CVE-2026-73624.json · Rebuilt by cve.day 2026-11-25T22:59:32.709Z
