{"id":"CVE-2026-42284","sourceIdentifier":"security-advisories@github.com","published":"2026-05-07T19:16:01.783","lastModified":"2026-11-11T23:10:00.263","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"GitPython es una biblioteca de Python utilizada para interactuar con repositorios Git. Antes de la versión 3.1.47, _clone() valida multi_options como la lista original, luego ejecuta shlex.split(“ ”.join(multi_options)). Una cadena como “- -branch main - -config core.hooksPath=/x” pasa la validación (comienza con - -branch), pero después de la división se convierte en [“- -branch”, “main”, “- -config”, “core.hooksPath=/x”]. Git aplica la configuración y ejecuta ganchos del atacante durante la clonación. Este problema ha sido parcheado en la versión 3.1.47."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"gitpython-developers","product":"GitPython","versions":[{"version":"< 3.1.47","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-05-08T00:00:00+00:00","id":"CVE-2026-42284","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-88"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*","versionEndExcluding":"3.1.47","matchCriteriaId":"9A895D2D-664B-48E6-BF39-AA96F978BAE9"}]}]}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47","source":"security-advisories@github.com","tags":["Patch","Release Notes"]},{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-x2qx-6953-8485","source":"security-advisories@github.com","tags":["Exploit","Vendor Advisory"]},{"url":"https://www.tenable.com/cve/CVE-2026-32686","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}