# CVE-2026-67325: GitPython before 3.1.51 Command Injection via option prefix abbreviation

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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): 2.21%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-21T19:43:43.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-2f96-g7mh-g2hx, PYSEC-2026-3836
- Weaknesses: CWE-78, CWE-184
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(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.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbreviation> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-67325> (advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2161> (web)
- <https://github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285> (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-2f96-g7mh-g2hx> (advisory)

## Sources

- CVE List: [CVE-2026-67325](https://www.cve.org/CVERecord?id=CVE-2026-67325), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-2f96-g7mh-g2hx](https://github.com/advisories/GHSA-2f96-g7mh-g2hx), CC-BY-4.0, modified 2026-09-23
- NVD: [CVE-2026-67325](https://nvd.nist.gov/vuln/detail/CVE-2026-67325), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3836](https://osv.dev/vulnerability/PYSEC-2026-3836), CC-BY-4.0, modified 2026-09-10

---

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