8.1High
CVE-2026-73624GitPython before 3.1.54 Arbitrary File Overwrite via diff
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.
Weakness (CWE):
CWE-88
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| gitpython project | gitpython | < 3.1.54 | |
| gitpython-developers | GitPython | < 3.1.54, fixed 3.1.54 |
References and patches
- GitHub Security Advisory (GHSA-fjr4-x663-mwxc) vendor-advisoryExploitMitigationThird Party Advisory
- VulnCheck Advisory: GitPython before 3.1.54 Arbitrary File Overwrite via diff third-party-advisoryThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*< 3.1.54