CVE-2026-73625

Summary

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.

Affected Software

VendorProductVersion RangeStatus
gitpython-developersGitPython0 < 3.1.54affected
gitpython-developersGitPython3.1.54unaffected

Weaknesses

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

References