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-2025-11578: pre-receive hook symlink escape
Fixed 2025 · Fixed
An enterprise admin on GitHub Enterprise Server could use a symlink in a pre-receive hook environment to replace system binaries during cleanup and add their own SSH key for root, turning an application role into root on the appliance.
- Went after
- Take over the GHES appliance
- Access held
- Enterprise admin on GHESRoot SSH on the appliance
Full summary
CVE-2025-11578 (CVSS 7.2) let an authenticated enterprise admin of GitHub Enterprise Server gain root SSH access to the appliance. With a crafted repository and pre-receive hook environment, a symlink escaped the hook's sandbox so that the cleanup step replaced system binaries; the payload then added the attacker's SSH key to root's authorized keys. It needed enterprise admin rights, affected every version before 3.19, and was fixed in 3.14.19, 3.15.14, 3.16.10, 3.17.7 and 3.18.1 after a bug bounty report.
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.
Exploitation needed enterprise admin privileges on the instance, enough to create a pre-receive hook environment and a repository for it.
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.
A crafted repository and environment used a symlink so that the hook's cleanup step replaced system binaries outside the sandbox.
The payload added the attacker's SSH key to root's authorized keys, giving root SSH access to the appliance. Every version before 3.19 was affected; it was fixed in 3.14.19, 3.15.14, 3.16.10, 3.17.7 and 3.18.1 after a bug bounty report.
Frameworks
Part of
Fixed. First seen October 2025. Mapping by ghtier, not yet reviewed. Threat landscape