VDB

CVE-2026-42215

CVE-2026-42215 PUBLISHED CVSS 8.8 HIGH

GitPython: Command injection via Git options bypass

Reported by github_m · Published May 7, 2026

GitPython is fixed in 3.1.47 (PyPI)

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
GitPythonPyPI3.1.47
checkovChainguard3.2.525-r0
datahub-ingestion-fipsChainguard1.5.0.1-r2
open-webuiWolfi0.9.2-r0
opalChainguard0.9.5-r0
checkovWolfi3.2.525-r0

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
gitpython-developersGitPython>= 3.1.30, < 3.1.47
chainguardcheckov0
chainguarddatahub-ingestion-fips0
wolfiopen-webui0
chainguardopal0
wolficheckov0
gitpython-developersGitPython3.1.30
chainguardmlflow-fips0
wolfimlflow0, 0
PyPIGitPython3.1.30
chainguardawx0
chainguardopen-webui0
chainguardmlflow0, 0
alpinepy3-gitpython0

Timeline

  • May 7, 2026 CVE Published
  • May 8, 2026 Security Advisory (2 in total, the first dated here)
  • May 9, 2026 CVE Updated
  • May 18, 2026 EPSS Score (30 in total, the first dated here)
  • Aug 4, 2026 Coalition ESS Score
  • Sep 4, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-42215
vulnetix vdb fixes CVE-2026-42215

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42215/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›