{"id":"CVE-2026-76217","published":"2026-08-19T14:02:02Z","modified":"2026-10-08T15:25:00Z","title":"GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00412,"percentile":0.36337,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-hh9p-6wh2-4mfc","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-pathspec-from-file","tags":["third-party-advisory"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":7.27},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.58"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.58"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T01:55:55.427917Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.58"],"patched":["3.1.58"],"from":["GHSA-hh9p-6wh2-4mfc","PYSEC-2026-3841"],"provenance":"source"}],"summary":{"text":"GitPython versions before 3.1.58 contain a flaw in the IndexFile.remove() and Head.checkout() methods, which fail to validate options passed to the git rm and git checkout commands. An attacker who can supply those options (such as --pathspec-from-file or --pathspec-file-nul) can read arbitrary files the process can access, with the contents returned in GitCommandError.stderr, and the attacker needs low-privilege authenticated access to reach the affected code path, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:16Z"},"euvd":{"id":"EUVD-2026-62458","exploited":false,"provenance":"source"}}