Debian Security Tracker
DEBIAN-CVE-2026-76218
Details
GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Debian:12 | python-git | All versions before 3.1.30-1+deb12u3 (fixed in 3.1.30-1+deb12u3) |
| Debian:13 | python-git | All versions before 3.1.44-1+deb13u1 (fixed in 3.1.44-1+deb13u1) |
| Debian:14 | python-git | All versions before 3.1.61-1 (fixed in 3.1.61-1) |