| Name | CVE-2026-67325 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4872-1, DSA-6594-1 |
| Debian Bugs | 1143454 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-git (PTS) | bookworm | 3.1.30-1+deb12u2 | vulnerable |
| bookworm (security) | 3.1.30-1+deb12u3 | fixed | |
| trixie | 3.1.44-1 | vulnerable | |
| trixie (security) | 3.1.44-1+deb13u1 | fixed | |
| forky, sid | 3.2.1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-git | source | bookworm | 3.1.30-1+deb12u3 | DLA-4872-1 | ||
| python-git | source | trixie | 3.1.44-1+deb13u1 | DSA-6594-1 | ||
| python-git | source | (unstable) | 3.1.61-1 | 1143454 |
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2f96-g7mh-g2hx
Fixed by: https://github.com/gitpython-developers/GitPython/commit/181e8ede7543dbbdcee92756cea260f675316c63 (3.1.51)
Fixed by: https://github.com/gitpython-developers/GitPython/commit/56806080c1348749b07daa4a2024ce47b3cad285 (3.1.51)