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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.54 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-13 · Modified: 2026-10-08
- Aliases: GHSA-fjr4-x663-mwxc, PYSEC-2026-3995, UBUNTU-CVE-2026-73624, DEBIAN-CVE-2026-73624
- Record: https://cvemate.com/vulnerability/CVE-2026-73624 · JSON: https://cvemate.com/vulnerability/CVE-2026-73624/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- EPSS: 0.348%, percentile 30.381%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.54
- gitpython-developers gitpython: \< 3.1.54
- PyPI gitpython (PyPI): \< 3.1.54

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxc>
- <https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-diff>
- <https://github.com/gitpython-developers/GitPython/pull/2180>
- <https://github.com/gitpython-developers/GitPython/commit/1d51b891d7f236044a6aa17498ec682b63dad6e6>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.54>
- <https://ubuntu.com/security/CVE-2026-73624>
- <https://www.cve.org/CVERecord?id=CVE-2026-73624>
- <https://security-tracker.debian.org/tracker/CVE-2026-73624>

---

Data as of 2026-12-05T04:46:56.307Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
