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-2024-1374: Management Console template injection
Fixed 2024 · Fixed
A user with the editor role in GitHub Enterprise Server's Management Console could inject commands through the nomad templates used for audit log forwarding and get admin SSH access to the appliance.
- Went after
- Take over the GHES appliance
- Access held
- T0Management Console access (Enterprise Server)Admin SSH on the appliance
Full summary
CVE-2024-1374 (CVSS 9.1) was a command injection in GitHub Enterprise Server's Management Console. When configuring audit log forwarding, values were placed into nomad templates without enough checking, so an attacker with the Management Console editor role could run commands and gain admin SSH access to the appliance. It needed access to the instance and to the Management Console with the editor role. It affected every version before 3.12 and was fixed in 3.11.5, 3.10.7, 3.9.10 and 3.8.15 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 access to the instance and to the Management Console with the editor role, a role meant for configuring the appliance, not for shell access.
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.
When audit log forwarding was configured, its settings were written into nomad templates in a way that let crafted values run commands.
The injected commands gave admin SSH access to the appliance. Every version before 3.12 was affected; it was fixed in 3.11.5, 3.10.7, 3.9.10 and 3.8.15 after a bug bounty report.
Frameworks
Part of
Fixed. First seen February 2024. Mapping by ghtier, not yet reviewed. Threat landscape