GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.
https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-template
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-6p8h-3wgx-97gf
Published: 2026-08-13
Updated: 2026-08-13
Base Score: 7.1
Vector: CVSS2#AV:N/AC:H/Au:S/C:C/I:C/A:C
Severity: High
Base Score: 7.5
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity: High
Base Score: 7.7
Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: High