Skip to main content
CVE-2026-73621VulnerabilityPublished Updated

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

Affects cruftSource GCVE Database

0
Authoritative record:CVE-2026-73621· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.16.0_13 when convenient.

Data as of 26 Oct 2026, 17:42 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.16.0_13
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade cruft to 2.16.0_13.

Affected software

ProductAffectedFixed in
Homebrewcruftpkg:brew/cruftOther threatsAffected
  • >=2.9.0 <2.16.0_13
Fixed in
  • 2.16.0_13

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in GitPython version 2.16.0_13 that adds the check_unsafe_options guard to Commit.count(), preventing unsafe output arguments from being passed to git rev-list. Users should upgrade to this fixed version or later to remediate the vulnerability. No additional mitigations are required once the patch is applied.

Description

GitPython's Commit.count() method improperly forwards unsafe options to git rev-list without validation, allowing an attacker to truncate arbitrary files to zero bytes. This occurs because the output argument is passed unchecked, leading to file truncation at the process privilege level. The vulnerability affects versions up to 3.1.53 and has a medium severity rating.

References

Community reviews

Loading reviews…