Improper Validation of Specified Type of Input Affecting gitpython package, versions [,3.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.42% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GITPYTHON-21246267
  • published19 Oct 2026
  • disclosed15 Oct 2026
  • creditwirsbf

Introduced: 15 Oct 2026

NewCVE-2026-110857  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.2.0 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input via Git.ls_remote forwarding caller-supplied URLs without check_unsafe_protocols validation. An attacker who controls the URL argument can supply an ext:: remote-helper URL (e.g. ext::sh -c ...) that causes git to execute arbitrary commands when the victim's git installation permits the ext transport. Repo.merge_base and IndexFile.move additionally forward caller-controlled **kwargs directly into the git argv without check_unsafe_options validation, exposing an unguarded option-injection surface analogous to CVE-2023-40267 and CVE-2026-67323.

Note: The ls_remote RCE path requires that the victim's git configuration permits the ext transport (e.g. protocol.ext.allow=always); git >= 2.38.1 with stock configuration refuses the transport at the git layer, though GitPython adds no defense-in-depth guard.

References

CVSS Base Scores

version 4.0
version 3.1