Description
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.
CVSS 6.5EPSS 0.281%Risk 0.67
View source- Published
- 2026-08-19 14:17:47
- Affected versions
- <3.1.58
- Type
- Library
- Last modified
- 2026-08-25 03:16:57
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N