# CVE-2026-67323: GitPython before 3.1.51 Command Injection via unguarded Git options

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-07-21T20:10:06.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-956x-8gvw-wg5v, PYSEC-2026-3839
- Weaknesses: CWE-77, CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.51 (not affected: 3.1.51)
- gitpython (PyPI): before 3.1.51
- gitpython_project gitpython: before 3.1.51

## Every score

- VulnCheck: CVSS:4.0 8.6 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-956x-8gvw-wg5v> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-unguarded-git-options> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-67323> (advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2163> (web)
- <https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.51> (web)
- <https://pypi.org/project/gitpython> (package)
- <https://github.com/advisories/GHSA-956x-8gvw-wg5v> (advisory)

## Sources

- CVE List: [CVE-2026-67323](https://www.cve.org/CVERecord?id=CVE-2026-67323), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-956x-8gvw-wg5v](https://github.com/advisories/GHSA-956x-8gvw-wg5v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-67323](https://nvd.nist.gov/vuln/detail/CVE-2026-67323), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3839](https://osv.dev/vulnerability/PYSEC-2026-3839), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-67323 · Whole record: https://cve.day/CVE-2026-67323.json · Rebuilt by cve.day 2026-11-25T22:59:30.788Z
