Affected versions
Ubuntu26.10/python-git
- Affected versions
- * || =3.1.46-1 || =3.1.50-1 || =3.1.61-1
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:22.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:24.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:26.04:LTS/python-git
- Affected versions
- Unknown
- Fixed version
- Not reported
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.

