A serious vulnerability in GitHub’s internal Git infrastructure allowed an authenticated user to execute arbitrary commands on the server while processing a single git push.
This flaw, identified as CVE-2026-3854, impacted GitHub.com, GitHub Enterprise Cloud, and self-hosted GitHub Enterprise Server (GHES). Wiz Research discovered the issue and reported it through GitHub’s bug bounty program.
GitHub patched the vulnerability in its hosted services on March 4, 2026. Their investigation found no evidence of exploitation beyond the researchers’ testing.
GitHub RCE Vulnerability
The attack required push access to a repository, but the user only needed to create one. The user did not need an administrator account or write access to anyone else’s project.
That distinguishes the flaw from a SAML authentication bypass in GitHub Enterprise Server: CVE-2026-3854 did not defeat the login check. It turned a legitimate repository permission into the ability to run code on the backend.
The issue occurred at the intersection of GitHub’s public Git interface and its internal services. Git push options allow a client to provide additional information to the server during a push.
GitHub integrated these options into internal metadata without properly separating user input from trusted data. As a result, a downstream service could mistakenly interpret user-supplied data as server configuration.
This trust failure impacted pre-receive hooks, which enforce repository policies before a server accepts a push, allowing code to execute outside the usual sandbox that restricts hook execution.
Wiz demonstrated code execution on shared GitHub.com storage nodes under the Git service account, which had filesystem access to repositories belonging to multiple customers.
Researchers found millions of repository index entries across two nodes. However, they used only their own test accounts to validate that isolation could be bypassed.
They did not read other customers’ repository contents. The exposure was in GitHub’s storage infrastructure, not in customer-configured workflows such as those affected by GitHub Actions script injection risks.
GitHub said it reproduced the flaw within 40 minutes and deployed a fix to GitHub.com less than two hours after receiving the report.
Investigators searched telemetry for a code path that does not run during normal GitHub.com operations and traced every occurrence to Wiz. GitHub said no customer data was accessed, modified, or exfiltrated as a result of the vulnerability. Hosted customers do not need to take action.

For self-hosted GHES installations, successful exploitation could expose hosted repositories, service configuration, and internal secrets. GitHub’s updated guidance lists 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4, and 3.20.0 as minimum releases for their respective branches.
Administrators should install the latest patch available for a supported branch rather than stop at those minimums. Subsequent updates, such as GitHub Enterprise Server 3.20.3, addressed separate security flaws.
GitHub recommends reviewing the file /var/log/github-audit.log for push operations that contain semicolons in the push options. If you find a match, consider it a lead to investigate rather than proof of compromise. The hosted investigation does not determine if any specific self-hosted appliance was targeted.
In addition to sanitizing push options, GitHub has removed code from hosted environments where it was not intended to run. An older deployment process had previously excluded that code, but this exclusion was lost when the deployment model changed.
The two fixes address different risks: input validation prevents user data from being treated as trusted metadata, while removing unused execution paths limits the potential impact of a future parsing flaw.
Join ANY.RUN and Torq to learn how TI Feeds can help your SOC detect up to 30% of malicious IOCs earlier & accelerate investigations -> Attend Free Live Webinar

