{"id":"DEBIAN-CVE-2026-42284","details":"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.","modified":"2026-09-01T16:06:42.450360308Z","published":"2026-05-07T19:16:01.783Z","upstream":["CVE-2026-42284"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-42284"}],"affected":[{"package":{"name":"python-git","ecosystem":"Debian:12","purl":"pkg:deb/debian/python-git?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.30-1","3.1.30-1+deb12u2","3.1.36-1","3.1.37-1","3.1.37-2","3.1.37-3","3.1.44-1","3.1.45-1","3.1.46-1","3.1.50-1","3.1.61-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42284.json"}},{"package":{"name":"python-git","ecosystem":"Debian:13","purl":"pkg:deb/debian/python-git?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.44-1","3.1.45-1","3.1.46-1","3.1.50-1","3.1.61-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42284.json"}},{"package":{"name":"python-git","ecosystem":"Debian:14","purl":"pkg:deb/debian/python-git?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.50-1"}]}],"versions":["3.1.44-1","3.1.45-1","3.1.46-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42284.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}