Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.54 are vulnerable to arbitrary file overwrite through the Diffable.diff() method, which passes keyword arguments and the other ref to git diff without the unsafe-option check. An attacker who can influence the diff arguments, such as the other ref or an output keyword, can make git write patch content to an attacker-chosen path, overwriting files with the process's privileges. Upgrade to GitPython 3.1.54 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.2 | High | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0055, the 46th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:09 UTC First seen by agentprime
- 31 Oct 2026, 14:09 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-fjr4-x663-mwxc
- OSV: GHSA-fjr4-x663-mwxc
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-fjr4-x663-mwxc
- github.com/gitpython-developers/GitPython/pull/2180
- github.com/gitpython-developers/GitPython/commit/1d51b891d7f236044a6aa17498ec682b63dad6e6
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.54