ZeroDay Brief
Happy holidays from ZeroDay Brief!
CVE-2026-42215

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…

CVSS
8.8High
Chance of exploitation (EPSS)
—
Published
May 7, 2026
In the news
1 story
Vendor advisory More from this vendor

What to do

A serious command injection flaw in Gitpython that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 3.1.47

Affected versions
Gitpython
3.1.30 to before 3.1.47; >= 3.1.30, < 3.1.47

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.

CWE-78

Affected products

Get alerts for these →

Timeline 5

Latest change: Tenable Cloud Security plugin 455466: Echo: python-git: security update to 3.1.47 (Nov 18, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 3

  • github.com Patch /gitpython-developers/GitPython/releases/tag/3.1.47
  • github.com ExploitVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4
  • github.com ExploitVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-rpm5-65cw-6hj4

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”