7.5High

CVE-2026-110857GitPython before 3.2.0 Command Execution via ls_remote ext:: URLs

gitpython-developers GitPython Published: (1 month ago)

Description

GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.

Weakness (CWE): CWE-1287

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
gitpython project gitpython < 3.2.0
gitpython-developers GitPython < 3.2.0, fixed 3.2.0

References and patches