Advisory record · GHSA-p538-c434-8v24

GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count

CVSS 5.3 MediumEPSS 0.0036 · 30th percentile

Published by the GitHub Advisory Database at 3 Aug 2026, 20:23 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.563.1.56
Identifiers
GHSA-p538-c434-8v24 · CVE-2026-73621 · PYSEC-2026-3950
Weakness (CWE)
CWE-88
Published
3 Aug 2026
Updated
10 Sept 2026

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().

Written 1 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 14:10 UTC First seen by agentprime
  2. 31 Oct 2026, 14:10 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.