GitHub CVE-2026-3854: authenticated git push option injection gives RCE on GitHub.com and Enterprise Server
GitHub disclosed CVE-2026-3854, a flaw in its internal Git infrastructure. An authenticated user could run arbitrary commands on the server with a single git push. It affected GitHub.com, GitHub Enterprise Cloud and self-hosted GitHub Enterprise Server (GHES). Wiz Research found it and reported it through the bug bounty program. GitHub fixed its hosted services on March 4, 2026, and says its telemetry shows no exploitation beyond the researchers' testing. Self-hosted GHES administrators must patch themselves. This summary is based on the article alone; no vendor advisory, CVSS score or fix pull request was checked.
Entenda a falha
A vulnerabilidade
CVE-2026-3854 is an option-injection flaw in GitHub's internal Git infrastructure. It affects GitHub.com, GitHub Enterprise Cloud and self-hosted GitHub Enterprise Server (GHES). An authenticated user with push access to a repository, which anyone can get by creating their own, can run arbitrary commands on the server with a single git push. No admin rights are needed. On GitHub.com, Wiz reached shared storage nodes under the Git service account. On GHES, an attacker could expose repositories, service configuration and internal secrets. Hosted services were fixed on March 4, 2026. GHES minimum fixed releases are 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4 and 3.20.0. Admins should install the latest patch on a supported branch.
Como funciona
A client sends push options along with a git push, which lets it pass extra information to the server. GitHub merged these options into internal metadata without separating what the user supplied from what the system trusts. A downstream service then read that metadata and treated the user-supplied values as server configuration. This affected pre-receive hooks, which enforce repository policy before a push is accepted. As a result, code ran outside the sandbox that normally restricts hook execution.
Por que é vulnerável
The root cause is a trust-boundary failure: user-controlled push options were not sanitized before entering internal metadata, so a later component could not tell them from trusted configuration. There was also a second cause. Code that was not meant to run on hosted environments had been excluded by an older deployment process, and that exclusion was lost when the deployment model changed. GitHub's fix sanitizes push options and removes that code from hosted environments. The first change stops user data being treated as trusted. The second limits the impact of any future parsing flaw.
Como foi descoberta
Wiz Research found the flaw and reported it through GitHub's bug bounty program. GitHub says it reproduced the issue within 40 minutes and deployed a fix to GitHub.com less than two hours after the report, on March 4, 2026. GitHub searched telemetry for a code path that does not run in normal GitHub.com operations and traced every occurrence to Wiz. It reports no customer data was accessed, modified or exfiltrated. It also says the hosted investigation cannot tell whether any specific self-hosted appliance was targeted.
PoC existente, privada
O exploit existe, mas quem o tem não o publicou.
Wiz demonstrated code execution on shared GitHub.com storage nodes under the Git service account, which had filesystem access to repositories of multiple customers. It used only its own test accounts and did not read other customers' data. The articles say nothing about a published exploit, so it should be treated as held by the researchers. GitHub saw no exploitation beyond Wiz's testing, but self-hosted GHES admins should still patch and review /var/log/github-audit.log for push options containing semicolons.
Explicação gerada por IA a partir da matéria e dos artigos, em 27/11/2026 08:15.
Detalhes técnicos
- Exploitation required push access to a repository, which any user can get by creating one of their own. Admin rights were not needed.
- Git push options were merged into internal metadata without separating user input from trusted data. A downstream service then treated user-supplied data as server configuration.
- This affected pre-receive hooks and let code run outside the sandbox that normally restricts hooks.
- Wiz showed code execution on shared GitHub.com storage nodes under the Git service account, which could reach repositories of multiple customers. Wiz used only its own test accounts and did not read other customers' data.
- On GHES, successful exploitation could expose hosted repositories, service configuration and internal secrets.
- A second cause: code that should not run on hosted environments had been excluded by an older deployment process, and that exclusion was lost when the deployment model changed.
Remediação
- Hosted customers need to take no action.
- GHES minimum fixed releases are 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4 and 3.20.0. Install the latest patch on a supported branch rather than stopping at these minimums.
- Review
/var/log/github-audit.logfor push operations whose push options contain semicolons. Treat a match as a lead to investigate, not proof of compromise.
Linha do tempo
-
GitHub CVE-2026-3854: authenticated git push option injection gives RCE on GitHub.com and Enterprise Server
ler a análise desta fonte ocultar
GitHub disclosed CVE-2026-3854, a flaw in its internal Git infrastructure. An authenticated user could run arbitrary commands on the server with a single
git push. It affected GitHub.com, GitHub Enterprise Cloud and self-hosted GitHub Enterprise Server (GHES). Wiz Research found it and reported it through the bug bounty program. GitHub fixed its hosted services on March 4, 2026, and says its telemetry shows no exploitation beyond the researchers' testing. Self-hosted GHES administrators must patch themselves. This summary is based on the article alone; no vendor advisory, CVSS score or fix pull request was checked.Technical Details
- Exploitation required push access to a repository, which any user can get by creating one of their own. Admin rights were not needed.
- Git push options were merged into internal metadata without separating user input from trusted data. A downstream service then treated user-supplied data as server configuration.
- This affected pre-receive hooks and let code run outside the sandbox that normally restricts hooks.
- Wiz showed code execution on shared GitHub.com storage nodes under the Git service account, which could reach repositories of multiple customers. Wiz used only its own test accounts and did not read other customers' data.
- On GHES, successful exploitation could expose hosted repositories, service configuration and internal secrets.
- A second cause: code that should not run on hosted environments had been excluded by an older deployment process, and that exclusion was lost when the deployment model changed.
Remediation
- Hosted customers need to take no action.
- GHES minimum fixed releases are 3.14.25, 3.15.20, 3.16.16, 3.17.13, 3.18.7, 3.19.4 and 3.20.0. Install the latest patch on a supported branch rather than stopping at these minimums.
- Review
/var/log/github-audit.logfor push operations whose push options contain semicolons. Treat a match as a lead to investigate, not proof of compromise.