Description
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 upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.
References (2)
Core 2
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4
X_Refsource_Misc x_refsource_misc
https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47
Scores
CVSS v3
8.8
EPSS
0.0003
EPSS Percentile
8.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
total
Details
CWE
CWE-78
Status
published
Products (3)
gitpython-developers/GitPython
>= 3.1.30, < 3.1.47
gitpython_project/gitpython
3.1.30 - 3.1.47
pypi/GitPython
3.1.30 - 3.1.47PyPI
Published
May 07, 2026
Tracked Since
May 08, 2026