These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
CVE-2026-3854: push-option metadata RCE
Fixed 2026 · Fixed
Any user who could push to a repository on GitHub Enterprise Server, even one they created themselves, could put a delimiter into a git push option, inject extra fields into internal service headers and run code on the instance.
- Went after
- Take over the GHES appliance
- Access held
- T2Contents: WriteCode execution on the instance
Full summary
CVE-2026-3854 (CVSS 8.8) let an attacker with push access to any repository on GitHub Enterprise Server run code on the instance. During a git push, the values of push options were copied into internal service headers without being cleaned, and the header format used a delimiter that can also appear in user input. A crafted push option could therefore add metadata fields of the attacker's choosing, which led to remote code execution. Push access is the lowest bar of all the Enterprise Server flaws on this site: on many instances any user can create a repository and push to it. It was reported through the bug bounty and fixed in 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
The attacker needs to be able to push to a repository on the instance. Where users can create repositories, any user has that for their own.
What breaks this step
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Make releases immutable, or protect release tags with a tag ruleset
Values passed with git push -o were put into internal service headers without being cleaned. The header format uses a delimiter that can appear in user input, so a crafted value adds extra metadata fields.
What breaks this step
- Keep GitHub Enterprise Server on a supported release with current patches
- Keep the Management Console and admin SSH off the general network.
The injected fields led to remote code execution on GitHub Enterprise Server. It was reported through the bug bounty and fixed in 3.14.24, 3.15.19, 3.16.15, 3.17.12, 3.18.6 and 3.19.3.
Frameworks
Part of
Fixed. First seen March 2026. Mapping by ghtier, not yet reviewed. Threat landscape