Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.56 are affected. Commit.count() passes keyword arguments straight to git rev-list without the unsafe-option check that its sibling iter_items applies. An attacker who can influence those options, for example an application that forwards user-supplied options, can make git truncate an arbitrary file on the system to zero bytes. Upgrade gitpython to 3.1.56 or later, and do not pass untrusted input as keyword arguments to Commit.count().
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 |
|---|---|---|---|---|
| 5.3 | Medium | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0036, the 30th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:10 UTC First seen by agentprime
- 31 Oct 2026, 14:10 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-p538-c434-8v24
- OSV: GHSA-p538-c434-8v24
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24
- github.com/gitpython-developers/GitPython/pull/2184
- github.com/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.56