{"cve":"CVE-2026-73621","nvd":{"published":"2026-08-13T12:17:27.200","modified":"2026-10-24T15:10:00.190","status":"Analyzed","description":"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).","cvss_v4":{"vector":"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","score":5.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":5.4},"cwes":["CWE-88"],"references":["https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24","https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-24T16:53:35.584907681+00:00"},"epss":{"cve":"CVE-2026-73621","score":0.0036,"percentile":0.29532,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-p538-c434-8v24","url":"https://osv.dev/vulnerability/GHSA-p538-c434-8v24","summary":"GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count","modified":"2026-09-10T13:10:55.177009469Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.56"],"fixed":["3.1.56"]}]},{"id":"PYSEC-2026-3950","url":"https://osv.dev/vulnerability/PYSEC-2026-3950","summary":"","modified":"2026-09-10T13:00:04.116168992Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.56"],"fixed":["3.1.56"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}