{"id":"CVE-2026-73621","published":"2026-08-13T11:28:22Z","modified":"2026-10-08T15:24:41Z","title":"GitPython before 3.1.56 Arbitrary File Truncation via Commit.count","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attacker who can control options passed to Commit.count (e.g., via an application that forwards a user-supplied options dict) can supply output=<path>, causing 'git rev-list --output=<path>' to open and truncate the target file to zero bytes before revision parsing. This allows destruction/blanking of an arbitrary file at the process's privilege level (no content control, 0-byte truncation).","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0036,"percentile":0.30596,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count","tags":["third-party-advisory"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":6.12},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.56"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.56"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-14T18:02:51.509040Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gitpython","vulnerableRanges":["<3.1.56"],"patched":["3.1.56"],"from":["PYSEC-2026-3950"],"provenance":"source"}],"summary":{"text":"GitPython before 3.1.56 has an argument injection flaw in the Commit.count() method, which passes keyword arguments through to 'git rev-list' without the unsafe-options check that its sibling iter_items method applies. An attacker who can control the options passed to Commit.count, such as through an application that forwards a user-supplied options dict, and who has low-privilege access, can inject an output=<path> argument that makes the target file truncate to zero bytes before revision parsing, with no control over the resulting content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:30Z"},"euvd":{"id":"EUVD-2026-57825","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","parents":[{"from":"CVE-2026-67323","to":"CVE-2026-73621","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/objects/commit.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-73624","published":"2026-08-13","fixed":"3.1.54","kev":false},{"cve":"CVE-2026-73625","published":"2026-08-13","fixed":"3.1.54","kev":false},{"cve":"CVE-2026-73622","published":"2026-08-13","fixed":"3.1.55","kev":false,"link":{"from":"CVE-2026-73622","to":"CVE-2026-73621","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.55","toFixed":"3.1.56","daysApart":0}]}},{"cve":"CVE-2026-73621","published":"2026-08-13","fixed":"3.1.56","kev":false},{"cve":"CVE-2026-73619","published":"2026-08-13","fixed":"3.1.57","kev":false,"link":{"from":"CVE-2026-73621","to":"CVE-2026-73619","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.56","toFixed":"3.1.57","daysApart":0}]}},{"cve":"CVE-2026-73620","published":"2026-08-13","fixed":"3.1.57","kev":false,"link":{"from":"CVE-2026-73621","to":"CVE-2026-73620","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.56","toFixed":"3.1.57","daysApart":0}]}},{"cve":"CVE-2026-76221","published":"2026-08-19","fixed":"3.1.58","kev":false}],"package":"PyPI:gitpython"}}