{"cve":"CVE-2026-42215","nvd":{"published":"2026-05-07T19:16:01.640","modified":"2026-06-17T10:47:31.463","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-78"],"references":["https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-42215","score":0.00749,"percentile":0.54925,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rpm5-65cw-6hj4","url":"https://osv.dev/vulnerability/GHSA-rpm5-65cw-6hj4","summary":"GitPython has Command Injection via Git options bypass","modified":"2026-09-10T03:51:03.167884784Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":[">=3.1.30 <3.1.47"],"fixed":["3.1.47"]}]},{"id":"PYSEC-2026-2160","url":"https://osv.dev/vulnerability/PYSEC-2026-2160","summary":"","modified":"2026-07-13T07:15:30.240215909Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":[">=3.1.30 <3.1.47"],"fixed":["3.1.47"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}