{"schemaVersion":3,"id":"CVE-2026-73621","aliases":["GHSA-p538-c434-8v24","PYSEC-2026-3950","UBUNTU-CVE-2026-73621","DEBIAN-CVE-2026-73621"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2026-08-13T11:28:22.108Z","modified":"2026-10-08T15:24:41.812Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":5.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":7.2,"impact":4.2,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":5.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0036,"percentile":0.28341,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.149,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00211},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0036,"percentile":0.28341}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00211,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0036,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0036,"percentile":0.28341}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GITPYTHON-DEVELOPERS_GITPYTHON","name":"Gitpython","source":"github","url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","description":"The product constructs a string for a command to be executed by a separate component\nin another control sphere, but it does not properly delimit the\nintended arguments, options, or switches within that command string.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/88.html"}],"affected":[{"vendor":"debian","product":"python-git","name":"python-git","label":"python-git","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-git","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.1.61-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.1.61-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-git","name":"python-git","label":"python-git","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-git","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gitpython_project","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.56","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.56","eol":null,"hubHref":"/vendor/gitpython_project/gitpython"},{"vendor":"gitpython-developers","product":"gitpython","name":"GitPython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.56","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.56","eol":null,"hubHref":"/vendor/gitpython-developers/gitpython"},{"vendor":"PyPI","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/gitpython","purlType":"pypi","versions":[{"text":"< 3.1.56","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.56","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24","label":"github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24","hostname":"github.com","tags":["Vendor Advisory","WEB","EVIDENCE","REPORT","Exploit"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count","label":"www.vulncheck.com/advisories/gitpython-before-arbitrary-file-truncation-via-commit-count","hostname":"www.vulncheck.com","tags":["Third Party Advisory","Advisory","REPORT"]},{"url":"https://github.com/gitpython-developers/GitPython/pull/2184","label":"github.com/gitpython-developers/GitPython/pull/2184","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2","label":"github.com/gitpython-developers/GitPython/commit/38553b6fddc7f6a667cdb45a6762343a08fc72b2","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gitpython-developers/GitPython","label":"github.com/gitpython-developers/GitPython","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.56","label":"github.com/gitpython-developers/GitPython/releases/tag/3.1.56","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-73621","label":"ubuntu.com/security/CVE-2026-73621","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-73621","label":"www.cve.org/CVERecord?id=CVE-2026-73621","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-73621","label":"security-tracker.debian.org/tracker/CVE-2026-73621","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11566-1","OPENSUSE-SU-2026:21874-1","SUSE-SU-2026:4072-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11566-1","OPENSUSE-SU-2026:21874-1","SUSE-SU-2026:4072-1"]},"timeline":[{"kind":"published","date":"2026-08-13T11:28:22.108Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:24:41.812Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:04:18.822Z","stale":false,"partial":false}}