Vulnerability
CVE-2026-67323
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.
33 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-2q45-x3x5-fwh5
- CGA-3232-2582-g274
- CGA-3fgg-vff9-mvf9
- CGA-6gh5-ggxg-qxgr
- CGA-72fh-6c97-83g4
- CGA-g65f-6ghm-qrpq
- CGA-g88f-3q92-6cjj
- CGA-ggq9-vcr4-8896
- CGA-m7ph-8q8v-qmx7
- CGA-mr97-r77j-8925
- CGA-mxx6-xfhj-hpcw
- CGA-r2h6-pwh9-wjmm
- CGA-rvgh-fg27-9c32
- CGA-wmx3-3jwh-rr5m