ghtier

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.

← All incidents

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.

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

Vulnerability in GitHubEnterprise Serverway inEnterprise admin on GHESThe attacker's accountEscalate from a GHES roleto roottechniqueRoot SSH on the applianceThe attacker's SSH key

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Part of

Fixed. First seen October 2025. Mapping by ghtier, not yet reviewed. Threat landscape

Sources