CVE-2026-67325 Details
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.
A command injection vulnerability has been identified in GitPython versions prior to 3.1.51. The issue arises from an incomplete blocklist that fails to consider Git's long-option prefix abbreviation feature. This oversight allows attackers to bypass safeguards against unsafe options by using abbreviated names, which Git interprets as dangerous options, leading to the execution of arbitrary commands.
Users can upgrade to GitPython version 3.1.51 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx | CISA-ADP | ExploitVendor Advisory |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx | [email protected] | ExploitVendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-command-injection-via-option-prefix-abbreviation | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitpython project gitpython | < 3.1.51 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Sep 3, 2026 | Initial Analysis | [email protected] |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 1, 2026 | New CVE Received | [email protected] |