CVE-2026-3854: GitHub RCE via a Single Git Push — What You Need to Know

Technical root cause of the command injection flaw in GitHub's internal git infrastructure allowing remote code execution via a single git push.

GitHub code repository representing RCE vulnerability
📌
Security Roundup Series: Week of May 7, 2026 • 4 min read deep dive
⚠️
Threat Intelligence & Technical Specs: CVE ID: CVE-2026-3854 Severity: CVSS 8.7 Status: Disclosed by Wiz Research Target Component: GitHub internal Git backend

This article is part of our Week of May 7, 2026 Security Roundup.

Wiz Research disclosed CVE-2026-3854 on April 28, 2026 — a command injection vulnerability in GitHub's internal git infrastructure that allowed any authenticated user with push access to a repository to achieve remote code execution on GitHub's backend servers with a single git push command. CVSS score: 8.7.

GitHub patched GitHub.com within two hours of receiving the report on March 4, 2026. GitHub Enterprise Server patches were released on March 10. Public disclosure came April 28.

Root Cause: Internal Header Injection

GitHub's git push pipeline passes data through multiple internal services written in different languages. User-supplied push option values were not sanitized before being included in internal service headers. The internal header format used a delimiter character that could also appear in attacker-controlled push option values.

By crafting a push option containing the delimiter, an attacker could inject additional metadata fields into the internal header, which downstream services interpreted as legitimate protocol data — leading to command execution on shared storage nodes.

# The vulnerability — push option values flow unsanitized into internal headers
git push origin main \
  -o <crafted-value-containing-internal-delimiter>

# No special tooling required — standard git client is sufficient
# Only requirement: authenticated user with push access to any repository

Scope of Impact

The vulnerability affected GitHub.com (patched March 4, 2026, within 2 hours of report), GitHub Enterprise Cloud and GitHub Enterprise Cloud with Data Residency, GitHub Enterprise Cloud with Enterprise Managed Users, and GitHub Enterprise Server versions prior to 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.8, 3.19.4, and 3.20.0.

Why This Matters Beyond the Patch

This is one of the first publicly documented critical vulnerabilities in closed-source binaries discovered using AI-assisted analysis, according to Wiz. The technique — using AI to analyze compiled code without source access — signals a meaningful shift in how vulnerability research will be conducted. Expect more discoveries of this type across other large platforms' closed-source infrastructure.

The attack vector is also worth internalizing: the complexity isn't in the exploit itself — a standard git push with a crafted option is trivial to execute. The complexity was in finding the injection point in a multi-language internal protocol. Once found, exploitation required no special tools, no elevated privileges, and no user interaction beyond having push access to any repository.

Remediation for GitHub Enterprise Server

# Check your GHES version
ghes version

# Required minimum patch versions:
# 3.14.x -> upgrade to 3.14.25 or later
# 3.15.x -> upgrade to 3.15.20 or later
# 3.16.x -> upgrade to 3.16.16 or later
# 3.17.x -> upgrade to 3.17.13 or later
# 3.18.x -> upgrade to 3.18.8 or later
# 3.19.x -> upgrade to 3.19.4 or later
# 3.20.x -> upgrade to 3.20.0 or later

GitHub.com users are already patched. If you are running GitHub Enterprise Server on an unpatched version, treat this as urgent — push access to any repository on your instance is sufficient to exploit this.


References: Wiz Research disclosure | GitHub Security Advisory | The Hacker News | Security Affairs


Read more

Guía de Defensa para CISOs 6 de Noviembre de 2026 Xen XSA-523 Alpine OpenSSH sshhole LXD mTLS cPGuard y Cadena de Frío OT

Guía de Defensa para CISOs del 6 de Noviembre de 2026: Blindaje de Xen Dom0, OpenSSH musl en Alpine, LXD mTLS, Paneles cPGuard/CWP, Controladores OT de Cadena de Frío y AD CS

📌Security Roundup Series: Semana del 6 de Noviembre de 2026 • 9 min de lectura deep dive🚨Vulnerability Intelligence: CVE ID: CVE-2026-119977, CVE-2026-107441, XSA-523, CVE-2026-112816, CVE-2026-123158 y CVE-2026-58868 (Grant Copy en Hipervisor, Validación mTLS, Retorno de Error en musl crypt(a.plerdy.com), TOCTOU y Control de Acceso OT) Severity: MANUAL

By James Luther
Campaña Poisoned Source de APT29 en Plerdy, Kali365 y VoidProxy PhaaS, Teams AD CS y Brechas en Queens Library Myriad y mSecure

Campaña "Poisoned Source" de APT29 (Plerdy), PhaaS con Señuelos de IA (Kali365 y VoidProxy), Toma de Control AD CS vía Teams y Brechas Globales (Queens Library, Myriad Genetics, mSecure y Japón)

📌Security Roundup Series: Semana del 6 de Noviembre de 2026 • 9 min de lectura deep dive🏛️Incident Overview: Target / Organization: Sitios con Plerdy SEO (APT29), Empresas M365/Google (Kali365/VoidProxy), Queens Public Library, Myriad Genetics y mSecure Threat Actor / Attribution: APT29 (Midnight Blizzard), Operadores PhaaS Kali365 / VoidProxy, Brain Cipher Ransomware

By James Luther