{"cve":"CVE-2026-42284","nvd":{"published":"2026-05-07T19:16:01.783","modified":"2026-06-17T10:47:37.963","status":"Modified","description":"GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(\" \".join(multi_options)). A string like \"--branch main --config core.hooksPath=/x\" passes validation (starts with --branch), but after split becomes [\"--branch\", \"main\", \"--config\", \"core.hooksPath=/x\"]. Git applies the config and executes attacker hooks during clone. 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:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485","https://www.tenable.com/cve/CVE-2026-32686"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-42284","score":0.00571,"percentile":0.47265,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-x2qx-6953-8485","url":"https://osv.dev/vulnerability/GHSA-x2qx-6953-8485","summary":"GitPython: Unsafe option check validates multi_options before shlex.split transformation","modified":"2026-09-10T03:51:03.787491179Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.47"],"fixed":["3.1.47"]}]},{"id":"PYSEC-2026-2161","url":"https://osv.dev/vulnerability/PYSEC-2026-2161","summary":"","modified":"2026-07-13T07:15:21.469164335Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<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."]}