snakemake · GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count
Affects snakemakeSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 9.24.0 when convenient.
Data as of 26 Oct 2026, 19:28 UTC
- Patch
- Available – fixed in 9.24.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:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 snakemake to 9.24.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsnakemakepkg:brew/snakemakeOther threats | Affected
| Fixed in
|
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 9.24.0 that adds the necessary check_unsafe_options guard to Commit.count(), preventing unsafe argument forwarding. Users should upgrade to version 9.24.0 or later to remediate this vulnerability. No other mitigation is required as the vulnerability is fixed in the official release.
Description
GitPython's Commit.count() method improperly forwards user-supplied options to git rev-list without safety checks, allowing an attacker with process-level privileges to truncate arbitrary files to zero bytes. This vulnerability affects versions up to 3.1.53 and was fixed in version 9.24.0. The impact is limited to file destruction (integrity and availability) without content control, resulting in a medium severity rating.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24 (opens in a new tab)
- github.com/gitpython-developers/GitPython/pull/2184 (opens in a new tab)
- github.com/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.1.56 (opens in a new tab)