CVE Explorer
CVE-2026-42215
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 it
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"GitPython","vendor":"gitpython-developers","versions":[{"status":"affected","version":">= 3.1.30, < 3.1.47"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-78","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47","tags":["x_refsource_MISC"],"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/cna/references/1
{"tags":["exploit"],"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/adp/0/references/0
{"name":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4","tags":["x_refsource_CONFIRM"],"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:44d21f241e969610cf82e75416d2fa904dfeb214db3cf625024ea98eb9c71080 · sha256:b9ba9adc3557c1f6… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.