ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2026-76220

Details

GitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.

Affected packages

EcosystemPackageAffected versions
Debian:12python-git
All versions before 3.1.30-1+deb12u3 (fixed in 3.1.30-1+deb12u3)
Debian:13python-git
All versions before 3.1.44-1+deb13u1 (fixed in 3.1.44-1+deb13u1)
Debian:14python-git
All versions before 3.1.61-1 (fixed in 3.1.61-1)

References