CVE-2026-76218Patch(gitpython_project / gitpython)

LOWCVSS 8.8 · HIGH

Exploit discussion active in current signal (1 latest mentions)

Immediate actions

  • Patch gitpython_project gitpython systems immediately
  • Hunt for exploitation attempts and persistence artifacts
  • Increase monitoring for publicly documented tradecraft

Recommended action window: High priority (within 72h)

NVD description

GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.

2.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-88

Priority

LOW

Exploitation

NONE

PoC

YES

Patch

AVAILABLE

Momentum

NONE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • gitpython

Threat summary

  • Public PoC is present in monitored signal
  • Patch or workaround signal is available
  • 1 mentions across 1 observed day

What's happening

  • PoC mentioned or linked in 1 signal
  • Patch or workaround mentioned in 1 signal
  • Technical details provided in 1 signal
  • 1 total mentions across 1 day

Affected systems

Products
gitpython

Deep dive

Activity timeline1 mentions / 1d
00111Mentions · 2026-08-20: 1PoC Mentioned / Linked · 2026-08-20: 1Patch / Workaround · 2026-08-20: 1Technical Details · 2026-08-20: 108-20
Signal classification1 categories
Patch
1100.0%
Referenced assets2 URLs
Full discourse1 post
  • lee1981@lee1981b
    Patch

    🔥 CyberForge CVE of the Day #029 🚨 CVE-2026-76218 — GitPython has patched a High-severity conditional RCE affecting versions 3.1.57 and earlier. A vulnerable application that forwards attacker-controlled options into `Repo.init()` can be tricked into using a malicious Git template. Git then copies an executable hook into the new repository, where a later Git operation can trigger arbitrary code with the privileges of the host application or CI/CD worker. 🔑 Key details: ⭐ Severity: High ⭐ CVSS v3.1: 7.5 ⭐ CVSS v4.0: 7.7 ⭐ CWE-88: Argument Injection ⭐ Authentication: Low privileges in the scored scenario ⭐ User interaction: None ⭐ Public PoC: Yes — included in the official vendor advisory ⭐ Active exploitation: None confirmed ⭐ CISA KEV: Not listed ⭐ EPSS: Not yet available ⚠️ Important distinction: GitPython does not expose its own network service, and merely having a vulnerable version installed does not prove remote exploitability. The complete chain requires: 1️⃣ An application that uses `Repo.init()` 2️⃣ Attacker influence over the Git-init options 3️⃣ A malicious template accessible to the service 4️⃣ A later Git action that activates the planted hook 💥 Potential impact: Successful exploitation could expose source code, repository credentials, cloud tokens, signing material, build artefacts and deployment secrets—making CI/CD workers and repository-provisioning services especially valuable targets. 🛡️ Defensive action: ✅ Upgrade to GitPython 3.1.58 or later ✅ Prefer the current 3.1.59 release ✅ Rebuild containers, virtual environments and CI runners ✅ Never pass raw user-controlled dictionaries into GitPython ✅ Never enable `allow_unsafe_options=True` for untrusted input ✅ Monitor unexpected `.git/hooks` creation and suspicious child processes after Git activity ✅ Treat repository templates as executable code 🕰️ Curious timeline: The patch and GitPython 3.1.58 arrived on 4 August, but the CVE was not publicly registered until 19 August. 🔗 Full technical advisory, PoC awareness and patch details: https://github.com/advisories/GHSA-9rj7-rf2p-w77r 🔗 Full vulnerability details: https://nvd.nist.gov/vuln/detail/CVE-2026-76218 #CyberForge #CVEOfTheDay #CVE202676218 #GitPython #Python #RCE #GitHooks #DevSecOps #CICD #SupplyChainSecurity #CyberSecurity

    Post summary

    The post announces CVE‑2026‑76218 in GitPython, includes a public PoC, detailed technical information, and actionable patch and mitigation guidance, but reports no active exploitation.

    00010102
    560 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Appgitpython_projectgitpython-python-

Explore more