PT-2026-81153 · Pypi+1 · Gitpython+1
CVSS v4.0
7.1
High
| Vector | AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
GitPython versions prior to 3.1.59
Description
An incomplete denylist in the
unsafe git revision options guard fails to include the --contents and -S options. This allows an attacker to read arbitrary files by passing these options to the Repo.blame() function. For example, providing a revision value such as --contents=/etc/passwd can leak the contents of sensitive files through the result returned to the caller.Recommendations
Update GitPython to version 3.1.59 or later.
Exploit
Fix
Information Disclosure
Argument Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gitpython
Red Os