CVE-2026-42215HIGH 8.8EPSS p49.0%

CVE-2026-42215CVE-2026-42215

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.

Scoring

CVSS 3.18.8 (HIGH)
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS0.72% probability of exploitation · percentile 49.0% · 2026-06-19T12:03:05Z
Published2026-05-07
Last modified2026-05-11

Underlying weaknesses· 1

CWE-78

References

  1. https://github.com/gitpython-developers/GitPython/releases/tag/3.1.47
  2. https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4
  3. https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4

1

TypeTargetConfidenceTier
WeaknessImproper Neutralization of Special Elements used in an OS Command ('OS Command Injection')cwe-780%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-42284
CVE
CVE-2025-21613
CVE
CVE-2026-28291
CVE
CVE-2025-27614
CVE
CVE-2026-45571
CVE
CVE-2026-28292
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.