{"id":"CVE-2026-67323","published":"2026-08-01T12:22:18Z","modified":"2026-10-08T15:24:05Z","title":"GitPython before 3.1.51 Command Injection via unguarded Git options","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archive() and git.ls_remote(), allowing command injection via options such as --exec/--upload-pack (leading to arbitrary command execution). Additionally, Repo.iter_commits() and Repo.blame() do not check for leading-dash revision arguments, so a revision like --output=<path> can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01251,"percentile":0.70022,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options","tags":["third-party-advisory"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":14.0},{"name":"CVSS severity","points":5.88}]},"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-04T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.51"],"patched":["3.1.51"],"from":["GHSA-956x-8gvw-wg5v","PYSEC-2026-3839"],"provenance":"source"}],"summary":{"text":"GitPython versions before 3.1.51 fail to block dangerous Git options passed as keyword arguments to Repo.archive() and git.ls_remote(), and do not reject leading-dash revision arguments in Repo.iter_commits() and Repo.blame(), which lets attacker-supplied input inject Git options. An attacker can exploit this to run arbitrary commands or truncate an arbitrary file, but only where the application passes attacker-controlled arguments to these methods, and the attack can be carried out locally without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:23Z"},"euvd":{"id":"EUVD-2026-51805","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","parents":[{"from":"CVE-2022-24439","to":"CVE-2026-67323","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["Repo","_clone"]}]},{"from":"CVE-2023-40267","to":"CVE-2026-67323","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2026-67322","to":"CVE-2026-67323","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/cmd.py","git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["_clone"]}]}],"children":[{"from":"CVE-2026-67323","to":"CVE-2026-110855","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/9349ff58ee00c9fb14d515c8e693f33b2144b238","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2026-67323","to":"CVE-2026-110857","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/cmd.py","git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/9ad28cc4c7176d22cd6181d69805058a719dd03b","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["Git","iter_commits"]}]},{"from":"CVE-2026-67323","to":"CVE-2026-110858","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/remote.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/790bb3164948625ffb043d2a162425d55923fe9a","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["pull"]}]},{"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"]}]},{"from":"CVE-2026-67323","to":"CVE-2026-73619","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/7a4f5dcb7bf3cbcbf6e438017efcdfe0bc0d36ca"],"basis":"shared function","functions":["Repo"]}]},{"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"}]},{"from":"CVE-2026-67323","to":"CVE-2026-73622","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/remote.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/863417457a0633db7ea5aed4fd01e0b291a41162"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2026-67323","to":"CVE-2026-73623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738","https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97"],"basis":"shared function","functions":["Repo"]}]}],"packageHistory":[{"cve":"CVE-2026-42284","published":"2026-05-07","fixed":"3.1.47","kev":false},{"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-67323","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},{"cve":"CVE-2026-76217","published":"2026-08-19","fixed":"3.1.58","kev":false}],"package":"PyPI:GitPython"}}