GitHub RCE let push users run server commands (CVE-2026-3854)
Original title: GitHub RCE Vulnerability Allows Hackers to Compromise Servers With a Single Git Push Command
Hosted GitHub was patched on March 4, 2026; investigators found only Wiz's tests and no customer data access.
Wiz reported CVE-2026-3854 in GitHub's internal Git infrastructure. An authenticated user who could push to a repository they created could run arbitrary commands because push options were treated as trusted metadata and escaped the pre-receive hook sandbox. GitHub patched hosted services quickly. Self-hosted GitHub Enterprise Server can expose repositories, configuration and secrets until updated.
Unconfirmed: GitHub's hosted investigation does not show whether any specific self-hosted appliance was targeted.
- Minimum GHES releases are 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4 and 3.20.0.
- Code ran as the Git service account on shared storage nodes.
- Researchers saw millions of index entries but did not read other customers' contents.
- Check /var/log/github-audit.log for semicolons in push options.
- GitHub Enterprise Server 3.20.3 later fixed separate flaws.
Impact: arbitrary command execution as the Git service account
| Product | Affected | Fixed in |
|---|---|---|
| GitHub.com | — | patched March 4, 2026 |
| GitHub Enterprise Cloud | — | patched March 4, 2026 |
| GitHub Enterprise Server | — | 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4, 3.20.0 |
- 1.Install the latest patch on a supported GHES branch, not only the listed minimums.
- 2.Review /var/log/github-audit.log for push options containing semicolons.
- 3.Hosted GitHub.com and Enterprise Cloud customers do not need to act.
- CVEs
- CVE-2026-3854
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-3854 | Header-injection RCE via git push options in GitHub Enterprise Server | 8.7 | 40% |
From the original article
3 min read at gbhackers.com
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).
By Divya · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.