Advisory record · GHSA-rpm5-65cw-6hj4

GitPython has Command Injection via Git options bypass

CVSS 8.8 HighEPSS 0.0075 · 55th percentile

Published by the GitHub Advisory Database at 25 Apr 2026, 23:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI>=3.1.30, <3.1.473.1.47
Identifiers
GHSA-rpm5-65cw-6hj4 · CVE-2026-42215 · PYSEC-2026-2160
Weakness (CWE)
CWE-78
Published
25 Apr 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions from 3.1.30 before 3.1.47 are affected. The unsafe-option guard blocks options such as upload-pack and receive-pack but not their underscore spellings (upload_pack and receive_pack) passed as Python keyword arguments to clone_from, fetch, pull, or push. If an application passes attacker-controlled keyword arguments into these calls, an attacker can run arbitrary commands as the application's account, even with allow_unsafe_options left at its default. Upgrade to GitPython 3.1.47 or later; no other workaround is listed.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.8 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0075, the 55th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 7 May 2026, 19:16 UTC Confirmed by NVD
  2. 31 Oct 2026, 14:11 UTC First seen by agentprime
  3. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.