CVE-2026-42215: GitPython: Command injection via Git options bypass
Vulnerability summary
CVE-2026-42215 is a high (CVSS 8.8) vulnerability in gitpython_project gitpython. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 4Timeline
- 07-05-2026PublishedVulnerability first disclosed.
- 09-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.75%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Decrease -0.15 pp
From 0.90% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGitpython
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard7 products
- awx< 24.6.1-r35
- checkov< 3.2.525-r0
- datahub-ingestion-fips< 1.5.0.1-r2
- mlflow< 3.11.1-r0 | < 3.16.0-r0
- mlflow-fips< 3.11.1-r0
Wolfi3 products
- checkov< 3.2.525-r0
- mlflow< 3.11.1-r0 | < 3.16.0-r0
- open-webui< 0.8.12-r4 | < 0.9.2-r0
Alpine1 product
- py3-gitpython≥ 3.1.30, < 3.1.49-r0
Debian1 product
- python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.50-1
Gitpython_project1 product
- gitpython≥ 3.1.30, < 3.1.47
Gitpython-developers1 product
- gitpython≥ 3.1.30, < 3.1.47
PyPI1 product
- gitpython≥ 3.1.30, < 3.1.47
Ubuntu1 product
- python-git< 0.3.2~RC1-3ubuntu0.1~esm3 | < 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | < 2.1.8-1ubuntu0.1~esm4 | < 3.0.7-1ubuntu0.1~esm4 | < 3.1.24-1ubuntu0.1~esm3 | < 3.1.37-3ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.1.46-1ubuntu0.1~esm1
8 vendors · 16 products
References
10 links- github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4X Refsource CONFIRMWEBEVIDENCEREPORTAdvisoryExploitVendor Advisory
- github.com/gitpython-developers/GitPython/releases/tag/3.1.47X Refsource MISCWEBFIXPatchRelease Notes