GitPython before 3.1.54 Remote Code Execution via kwarg value smuggling
At a glance
Severity
HIGH 8.7
EPSS
EPSS 0.92 % · percentile 60 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
VulnCheck
NVD status
Analyzed
Description
GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.
GHSA-r9mr-m37c-5fr3 — GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command execution
PYSEC-2026-3953 — GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options i