Skip to main content
CVE-2026-42215VulnerabilityPublished Updated

Python git: From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack

Affects python-gitSource GCVE Database

0
Compare
Authoritative record:CVE-2026-42215· High 8.8

Not known to be exploited · CVSS 8.8 High · fixed in 0.3.2~RC1-3ubuntu0.1~esm3 : patch python-git soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.3.2~RC1-3ubuntu0.1~esm3, 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4, 2.1.8-1ubuntu0.1~esm4 +4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.10python-gitpkg:deb/ubuntu/python-git?arch=source&distro=stonkingOther threatsAffected
  • =3.1.46-1
  • =3.1.50-1
  • =3.1.61-1
Fixed in–
Ubuntu Pro 26.04 LTSpython-gitpkg:deb/ubuntu/python-git?arch=source&distro=esm-apps/resoluteOther threatsAffected
  • <3.1.46-1ubuntu0.1~esm1
Fixed in
  • 3.1.46-1ubuntu0.1~esm1
Ubuntu 25.10python-gitpkg:deb/ubuntu/python-git?arch=source&distro=questingOther threatsAffected
  • =3.1.44-1
Fixed in–
Ubuntu Pro 24.04 LTSpython-gitpkg:deb/ubuntu/python-git?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <3.1.37-3ubuntu0.1~esm2
Fixed in
  • 3.1.37-3ubuntu0.1~esm2
Ubuntu Pro 22.04 LTSpython-gitpkg:deb/ubuntu/python-git?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.1.24-1ubuntu0.1~esm3
Fixed in
  • 3.1.24-1ubuntu0.1~esm3
Ubuntu Pro 20.04 LTSpython-gitpkg:deb/ubuntu/python-git?arch=source&distro=esm-apps/focalOther threatsAffected
  • <3.0.7-1ubuntu0.1~esm4
Fixed in
  • 3.0.7-1ubuntu0.1~esm4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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

Community reviews

Loading reviews…