CVE-2026-42215

EUVD-2026-28411
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.
OS Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 55.03%
Affected Products (NVD)
VendorProductVersion
gitpython_projectgitpython
3.1.30 ≤
𝑥
< 3.1.47
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-git
bookworm
vulnerable
bookworm (security)
3.1.30-1+deb12u3
fixed
forky
3.2.1-1
fixed
sid
3.2.1-1
fixed
trixie
vulnerable
trixie (security)
3.1.44-1+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-git
bionic
Fixed in 2.1.8-1ubuntu0.1~esm4
released
focal
Fixed in 3.0.7-1ubuntu0.1~esm4
released
jammy
Fixed in 3.1.24-1ubuntu0.1~esm3
released
noble
Fixed in 3.1.37-3ubuntu0.1~esm2
released
questing
ignored
resolute
Fixed in 3.1.46-1ubuntu0.1~esm1
released
stonking
needed
trusty
Fixed in 0.3.2~RC1-3ubuntu0.1~esm3
released
xenial
Fixed in 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4
released