A severe vulnerability in GitHub’s inside Git infrastructure allowed an authenticated person to execute arbitrary instructions on the server whereas processing a single git push.
This flaw, recognized as CVE-2026-3854, impacted GitHub.com, GitHub Enterprise Cloud, and self-hosted GitHub Enterprise Server (GHES). Wiz Analysis found the problem and reported it via GitHub’s bug bounty program.
GitHub patched the vulnerability in its hosted companies on March 4, 2026. Their investigation discovered no proof of exploitation past the researchers’ testing.
GitHub RCE Vulnerability
The assault required push entry to a repository, however the person solely wanted to create one. The person didn’t want an administrator account or write entry to anybody else’s challenge.
That distinguishes the flaw from a SAML authentication bypass in GitHub Enterprise Server: CVE-2026-3854 didn’t defeat the login test. It turned a reliable repository permission into the power to run code on the backend.
The problem occurred on the intersection of GitHub’s public Git interface and its inside companies. Git push choices enable a shopper to supply extra info to the server throughout a push.

GitHub built-in these choices into inside metadata with out correctly separating person enter from trusted information. Because of this, a downstream service might mistakenly interpret user-supplied information as server configuration.
This belief failure impacted pre-receive hooks, which implement repository insurance policies earlier than a server accepts a push, permitting code to execute outdoors the same old sandbox that restricts hook execution.
Wiz demonstrated code execution on shared GitHub.com storage nodes underneath the Git service account, which had filesystem entry to repositories belonging to a number of clients.
Researchers discovered hundreds of thousands of repository index entries throughout two nodes. Nonetheless, they used solely their very own take a look at accounts to validate that isolation could possibly be bypassed.
They didn’t learn different clients’ repository contents. The publicity was in GitHub’s storage infrastructure, not in customer-configured workflows similar to these affected by GitHub Actions script injection dangers.
GitHub mentioned it reproduced the flaw inside 40 minutes and deployed a repair to GitHub.com lower than two hours after receiving the report.
Investigators searched telemetry for a code path that doesn’t run throughout regular GitHub.com operations and traced each incidence to Wiz. GitHub mentioned no buyer information was accessed, modified, or exfiltrated because of the vulnerability. Hosted clients don’t must take motion.

For self-hosted GHES installations, profitable exploitation might expose hosted repositories, service configuration, and inside secrets and techniques. GitHub’s up to date steerage lists 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4, and three.20.0 as minimal releases for his or her respective branches.
Directors ought to set up the newest patch obtainable for a supported department slightly than cease at these minimums. Subsequent updates, similar to GitHub Enterprise Server 3.20.3, addressed separate safety flaws.
GitHub recommends reviewing the file /var/log/github-audit.log for push operations that comprise semicolons within the push choices. For those who discover a match, contemplate it a result in examine slightly than proof of compromise. The hosted investigation doesn’t decide if any particular self-hosted equipment was focused.
Along with sanitizing push choices, GitHub has eliminated code from hosted environments the place it was not supposed to run. An older deployment course of had beforehand excluded that code, however this exclusion was misplaced when the deployment mannequin modified.
The 2 fixes tackle totally different dangers: enter validation prevents person information from being handled as trusted metadata, whereas eradicating unused execution paths limits the potential impression of a future parsing flaw.
Be a part of ANY.RUN and Torq to find out how TI Feeds may help your SOC detect as much as 30% of malicious IOCs earlier & speed up investigations -> Attend Free Reside Webinar








