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.
Metrics
CVSS 3.1 8.1/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.54 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxcExploit, Mitigation, Third Party Advisory
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-via-diffThird Party Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxcExploit, Mitigation, Third Party Advisory
Timeline
- Published
- Aug 13, 2026
- Last modified
- Oct 24, 2026
- NVD status
- Analyzed