Vulnerability · Published Aug 1, 2026 · Assigned by VulnCheck

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

High 8.8

In plain English

A high-severity OS command injection in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)2.2%top 17.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-67325
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-67325
Debian:14python-git3.1.61-1DEBIAN-CVE-2026-67325
PyPIgitpython3.1.51GHSA-2f96-g7mh-g2hx
PyPIgitpython3.1.51PYSEC-2026-3836
Ubuntu:26.10python-gitno fix listedUBUNTU-CVE-2026-67325

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.51

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References