{"id":"CVE-2026-67325","published":"2026-08-01T12:22:16Z","modified":"2026-10-08T15:24:06Z","title":"GitPython before 3.1.51 Command Injection via option prefix abbreviation","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.51 contains an incomplete command injection blocklist that fails to account for git's long-option prefix abbreviation feature. Attackers can bypass the unsafe options guard by using abbreviated option names like upload_p instead of upload_pack, which git resolves to dangerous options and executes arbitrary commands.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02501,"percentile":0.85415,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbreviation","tags":["third-party-advisory"]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":17.08},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.51"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.51"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-05T03:56:16.576389Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.51"],"patched":["3.1.51"],"from":["GHSA-2f96-g7mh-g2hx","PYSEC-2026-3836"],"provenance":"source"}],"summary":{"text":"GitPython before 3.1.51 has a command injection flaw in its blocklist of unsafe git options, which does not account for git's long-option prefix abbreviation. The flaw lives in the GitPython library's handling of git command arguments. An attacker with low privileges on a network-reachable system where GitPython is used can supply abbreviated option names such as upload_p in place of upload_pack to bypass the guard, causing git to run arbitrary commands with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:37Z"},"euvd":{"id":"EUVD-2026-51858","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","parents":[{"from":"CVE-2026-67323","to":"CVE-2026-67325","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/cmd.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285"],"basis":"shared function","functions":["check_unsafe_options"]}]}],"packageHistory":[{"cve":"CVE-2026-44243","published":"2026-05-07","fixed":"3.1.48","kev":false},{"cve":"CVE-2026-44244","published":"2026-05-07","fixed":"3.1.49","kev":false,"link":{"from":"CVE-2026-44244","to":"CVE-2026-67325","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.49","toFixed":"3.1.51","daysApart":86}]}},{"cve":"CVE-2026-67323","published":"2026-08-01","fixed":"3.1.51","kev":false},{"cve":"CVE-2026-67325","published":"2026-08-01","fixed":"3.1.51","kev":false},{"cve":"CVE-2026-67322","published":"2026-08-01","fixed":"3.1.52","kev":false,"link":{"from":"CVE-2026-67325","to":"CVE-2026-67322","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.51","toFixed":"3.1.52","daysApart":0},{"kind":"same-code","provenance":"machine","files":["git/cmd.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285"],"basis":"shared file"}]}},{"cve":"CVE-2026-76217","published":"2026-08-19","fixed":"3.1.58","kev":false},{"cve":"CVE-2026-76218","published":"2026-08-19","fixed":"3.1.58","kev":false}],"package":"PyPI:GitPython"}}