{"id":"DHI-7vwu-44pl-rnkj-zx3b","summary":"GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in…","details":"GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.","modified":"2026-11-21T16:00:10.845398826Z","published":"2026-11-11T16:48:10Z","upstream":["CVE-2026-76217"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-7vwu-44pl-rnkj-zx3b"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76217"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file"},{"type":"ADVISORY","url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-76217"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-76217"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hh9p-6wh2-4mfc"},{"type":"FIX","url":"https://github.com/gitpython-developers/GitPython/pull/2204"},{"type":"FIX","url":"https://github.com/gitpython-developers/GitPython/commit/f2550b65bf60ca087190981e2c7b6865e201f40c"},{"type":"WEB","url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.58"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-76217"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-76217"}],"affected":[{"package":{"name":"git-mcp","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/git-mcp"},"versions":["2026.7.10-r0","2026.7.10-r2","2026.7.10-r3","2026.8.18-r0","2026.8.31-r0","2026.8.31-r1","2026.8.31-r10","2026.8.31-r11","2026.8.31-r2","2026.8.31-r3","2026.8.31-r4","2026.8.31-r5","2026.8.31-r6","2026.8.31-r7","2026.8.31-r8","2026.8.31-r9"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7vwu-44pl-rnkj-zx3b.json","owner_kind":"HSP"}},{"package":{"name":"git-mcp","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/git-mcp"},"versions":["2026.7.10-0","2026.7.10-1","2026.7.10-2","2026.7.10-3","2026.7.10-4","2026.7.10-5","2026.8.18-0","2026.8.18-1","2026.8.18-2","2026.8.31-0","2026.8.31-1","2026.8.31-10","2026.8.31-11","2026.8.31-12","2026.8.31-13","2026.8.31-14","2026.8.31-15","2026.8.31-16","2026.8.31-17","2026.8.31-18","2026.8.31-19","2026.8.31-2","2026.8.31-20","2026.8.31-21","2026.8.31-22","2026.8.31-23","2026.8.31-24","2026.8.31-25","2026.8.31-26","2026.8.31-27","2026.8.31-3","2026.8.31-4","2026.8.31-5","2026.8.31-6","2026.8.31-7","2026.8.31-8","2026.8.31-9"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7vwu-44pl-rnkj-zx3b.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}