SUN 29 NOV 2026
Home / Vulnerabilities

GitHub Patches Critical RCE Vulnerability That Allowed Server Compromise Through a Single Git Push

A flaw in GitHub's internal Git infrastructure allowed authenticated users to execute arbitrary commands on backend servers through specially crafted Git push options.

AC By
27 Nov 2026, 11:43 · 3 min read
A critical GitHub RCE vulnerability allowed authenticated users to execute arbitrary commands on backend servers through
A critical GitHub RCE vulnerability allowed authenticated users to execute arbitrary commands on backend servers…

A critical GitHub RCE vulnerability allowed authenticated users to execute arbitrary commands on backend servers through a single specially crafted git push operation, potentially exposing repositories and internal infrastructure across the platform.

Tracked as CVE-2026-3854, the vulnerability affected GitHub.com, GitHub Enterprise Cloud and self-hosted GitHub Enterprise Server (GHES). Security researchers at Wiz Research discovered the flaw and reported it through GitHub’s bug bounty program.

According to \[\[GitHub’s security investigation|1\]\], the company reproduced the vulnerability within 40 minutes and deployed a fix to GitHub.com on March 4, 2026. Its subsequent investigation found no evidence of exploitation outside the researchers’ testing.

Git push options enabled command execution

The vulnerability originated in how GitHub processed additional information supplied through Git push options.

These options allow Git clients to transmit extra key-value information during repository operations. However, GitHub incorporated user-controlled values into internal service metadata without adequately separating untrusted input from trusted configuration.

Because the internal metadata format used delimiters that could also appear in user-supplied values, attackers could inject additional fields that downstream services interpreted as legitimate internal instructions.

This affected pre-receive hooks, which enforce repository policies before accepting incoming pushes.

By manipulating the internal processing environment, an attacker could bypass sandboxing protections that normally restrict hook execution and ultimately execute arbitrary commands on the server.

Exploitation required authenticated access and push permissions to a repository. However, attackers did not need administrator privileges or write access to another user’s project.

Wiz demonstrated that the vulnerability could provide code execution on shared GitHub.com storage nodes under the Git service account. That account had filesystem access to repositories belonging to multiple customers.

Researchers identified millions of repository index entries across two storage nodes. They used their own test accounts to validate the isolation weakness and did not access other customers’ repository contents.

GitHub confirms no evidence of exploitation

GitHub investigated whether attackers had discovered the vulnerability before Wiz reported it.

The investigation focused on an unusual execution path that the exploit triggered but normal GitHub.com operations did not use.

According to the company’s findings, every recorded occurrence of that execution path corresponded to Wiz’s testing activity. GitHub also reported no evidence that customer data had been accessed, modified or exfiltrated.

The company addressed the issue through two security improvements: sanitizing Git push options before incorporating them into internal metadata and removing unintended execution paths from hosted environments.

The fixes address both the original input-validation weakness and the potential impact of similar parsing problems.

GHES administrators must install security updates

GitHub’s hosted services received their fixes on March 4, 2026. Customers using GitHub.com and GitHub Enterprise Cloud do not need to take additional action for this vulnerability.

Self-hosted GHES installations require administrator attention.

GitHub identified the following minimum patched releases:

  • GitHub Enterprise Server 3.14.25
  • GitHub Enterprise Server 3.15.20
  • GitHub Enterprise Server 3.16.16
  • GitHub Enterprise Server 3.17.13
  • GitHub Enterprise Server 3.18.7
  • GitHub Enterprise Server 3.19.4
  • GitHub Enterprise Server 3.20.0

Administrators should install the latest available security update for their supported release branch rather than relying solely on these minimum versions.

GitHub also recommends examining `/var/log/github-audit.log` for push operations containing semicolons in their push options. Such entries should be investigated as potential indicators rather than treated as confirmation of compromise.

Organizations running self-hosted GitHub Enterprise Server should prioritize patching, review suspicious repository operations and investigate unexpected activity involving Git push options.

AC

Covers zero-days, CVEs, security advisories and software patches. Alex reports on newly discovered vulnerabilities, actively exploited flaws and security updates, explaining their potential impact on affected systems.

Related stories