PYSEC-2026-2160

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/gitpython/PYSEC-2026-2160.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2160
Aliases
Published
2026-05-07T19:16:01.640Z
Modified
2026-07-13T07:15:30.240215909Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs uploadpack and receivepack bypass that check. If an application passes attacker-controlled kwargs into Repo.clonefrom(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allowunsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

References

Affected packages

PyPI / gitpython

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.1.30
Fixed
3.1.47

Affected versions

3.*
3.1.30
3.1.31
3.1.32
3.1.33
3.1.34
3.1.35
3.1.36
3.1.37
3.1.38
3.1.40
3.1.41
3.1.42
3.1.43
3.1.44
3.1.45
3.1.46

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/gitpython/PYSEC-2026-2160.yaml"