CVE-2026-42215
Vulnerability Summary
Timeline
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
- v3.1•HIGH•Score: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.75%• Percentile: 53%
Techniques & Countermeasures
- CWE-78•Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected Systems
- chainguard•awx
< 24.6.1-r35
- chainguard•checkov
< 3.2.525-r0
- chainguard•datahub-ingestion-fips
< 1.5.0.1-r2
- chainguard•mlflow
< 3.11.1-r0 | < 3.16.0-r0
- chainguard•mlflow-fips
< 3.11.1-r0
- chainguard•opal
< 0.9.5-r0
- chainguard•open-webui
< 0.8.12-r4 | < 0.9.2-r0
- wolfi•checkov
< 3.2.525-r0
- wolfi•mlflow
< 3.11.1-r0 | < 3.16.0-r0
- wolfi•open-webui
< 0.8.12-r4 | < 0.9.2-r0
- debian•python-git
all | all | all | < 3.1.50-1
- gitpython_project•gitpython
≥ 3.1.30, < 3.1.47
- gitpython-developers•gitpython
≥ 3.1.30, < 3.1.47
- PyPI•gitpython
≥ 3.1.30, < 3.1.47
References (6)
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4
- https://github.com/gitpython-developers/GitPython
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47
- https://nvd.nist.gov/vuln/detail/CVE-2026-42215
- https://security-tracker.debian.org/tracker/CVE-2026-42215
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42215.json