{"id":"CVE-2026-42284","published":"2026-05-07T18:19:20Z","modified":"2026-05-09T03:56:02Z","title":"GitPython: Unsafe option check validates multi_options before shlex.split transforms it","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00571,"percentile":0.48163,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47","tags":["x_refsource_MISC"]},{"url":"https://www.tenable.com/cve/CVE-2026-32686","tags":["exploit"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":9.63},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.47"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-08T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.47"],"patched":["3.1.47"],"from":["GHSA-x2qx-6953-8485","PYSEC-2026-2161"],"provenance":"source"}],"summary":{"text":"The flaw is an argument-injection bypass in GitPython's _clone() function, where the unsafe-option check validates the multi_options list before shlex.split re-tokenises it, so option strings that pass validation can smuggle in extra Git options. An attacker who can influence the options passed to a clone can, without authentication or user interaction and with only network access to the target, have Git apply a malicious configuration and run attacker-controlled hooks during the clone, provided the affected GitPython version (before 3.1.47) is in use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:42Z"},"euvd":{"id":"EUVD-2026-28412","exploited":false,"provenance":"source"},"exploitRefs":["https://www.tenable.com/cve/CVE-2026-32686"],"lineage":{"packageHistory":[{"cve":"CVE-2023-41040","published":"2023-08-30","fixed":"3.1.37","kev":false},{"cve":"CVE-2024-22190","published":"2024-01-11","fixed":"3.1.41","kev":false},{"cve":"CVE-2026-42215","published":"2026-05-07","fixed":"3.1.47","kev":false},{"cve":"CVE-2026-42284","published":"2026-05-07","fixed":"3.1.47","kev":false},{"cve":"CVE-2026-44243","published":"2026-05-07","fixed":"3.1.48","kev":false,"link":{"from":"CVE-2026-42284","to":"CVE-2026-44243","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.47","toFixed":"3.1.48","daysApart":0}]}},{"cve":"CVE-2026-44244","published":"2026-05-07","fixed":"3.1.49","kev":false},{"cve":"CVE-2026-67323","published":"2026-08-01","fixed":"3.1.51","kev":false}],"package":"PyPI:GitPython"}}