Friday, August 28, 2026

GitHub.com and Enterprise Server Vulnerability Allows Remote Code Execution

Wiz Research has identified a critical remote code execution (RCE) vulnerability, tracked as CVE-2026-3854, deeply embedded within GitHub’s internal git infrastructure.

This high-severity flaw enabled any authenticated user to execute arbitrary commands on backend servers using a single standard git push command.

The vulnerability originates from an improper neutralization of special elements during repository push operations.

GitHub’s internal architecture uses multiple services to process a git push, passing security-critical configuration metadata via an internal header named X-Stat.

The primary entry service, babeld, copied user-controlled git push options directly into this internal header without sanitizing semicolon characters.

Because the X-Stat header uses semicolons as field delimiters, attackers could inject their own metadata fields by simply including semicolons in their push options, as reported by Wiz.

GitHub.com and Enterprise Server Vulnerability

The internal header parsing mechanism follows a last-write-wins policy, meaning that fields inserted later in the string silently override legitimate security policies set by the authentication service.

ComponentVulnerable VersionsFixed Versions
GitHub Enterprise Server3.19.1 and older3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4 

Attackers successfully leveraged this delimiter injection to override security flags and compromise the system.

Vulnerability overview (Source: Wiz)
Vulnerability overview (Source: Wiz)

The escalation to full remote code execution required chaining three specific field injections:

  • Attackers injected a non-production rails_env value to bypass the security sandbox and run custom pre-receive hooks directly.
  • They injected a malicious custom_hooks_dir value to redirect the base directory where the server looks for hook scripts.
  • They supplied a crafted repo_pre_receive_hooks definition containing a path traversal sequence to target arbitrary binaries on the filesystem.

Once executed, the unsandboxed code ran under the privileges of the internal git service user.

On GitHub Enterprise Server (GHES), this flaw resulted in complete server compromise, granting unauthorized access to all hosted repositories, internal configuration data, and system secrets.

On GitHub.com, the multi-tenant architecture amplified the risk. Successful exploitation enabled attackers to obtain broad filesystem access to shared storage nodes running as the git service user.

Wiz Threat Center query for vulnerable GHES instances (Source: Wiz)
Wiz Threat Center query for vulnerable GHES instances (Source: Wiz)

This level of access meant threat actors could theoretically read millions of public and private repositories belonging to entirely different organizations and users sharing that node.

Extracting and analyzing the vast number of compiled blackbox binaries governing GitHub’s multi-service architecture manually is highly impractical.

Wiz researchers successfully used AI-augmented automated reverse-engineering tools, specifically IDA MCP, to systematically reconstruct internal communication protocols.

This highlights a significant industry shift toward using AI capabilities to uncover complex, cross-component vulnerabilities in closed-source platforms.

GitHub mitigated the vulnerability on GitHub.com within six hours of the initial report. In self-hosted environments, immediate patching is required, as the attack is network-based and requires only push access to a single repository.

Follow us on Google NewsLinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Attackers Exploit MCP RCE, Blind Prompt Injection and Memory Credential Theft Against AI Infrastructure

Attackers are increasingly treating AI infrastructure as a high-value...

700 OpenAI Agents Coordinate Attack on Hugging Face and Gain Remote Code Execution

OpenAI’s ExploitGym evaluation environment reportedly became the site of...

Polymorphic Phishing Attack Generates Unique Credential-Stealing Page on Every Visit

A newly analyzed phishing operation is using server-side polymorphism...

Critical WordPress Plugin Flaw Allows Unauthenticated Administrator Account Takeover

A critical authentication bypass vulnerability has been identified in...

ServiceNow Patches Critical Flaws Enabling Unauthenticated RCE and SQL Injection

ServiceNow has issued security advisories for four vulnerabilities, including...

Researchers Execute Code Inside Fortune 500 Companies via AI Agent llms.txt Files

Security researchers have shown that AI coding agents can...

BlueDelta Targets Defense and Diplomatic Organizations With HOOKEDGE Malware

Russian state-linked threat actor BlueDelta has launched a renewed...

Related Articles

Recent News