Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service
- CVE-2026-104608
- GHSA-8r7w-x58w-955w
- EUVD-2026-116581
Description
A remote code execution vulnerability was identified in GitHub Enterprise Server in the Git service (babeld). babeld held references into internal collections while calling into the SSH library, where a re-entrant callback could modify a collection and invalidate those references. An attacker with an account and SSH access to the instance could leverage this use-after-free into a controlled write and run arbitrary commands as babeld, including disclosure of its environment secrets. Exploitation required per-build memory offsets; failed attempts crashed babeld. This affected all releases prior to 3.23 and was fixed in 3.22.3, 3.21.8, 3.20.10, and 3.19.14. This vulnerability was reported via the GitHub Bug Bounty program.
Text from the CVE.org record.
Recommendation
GitHub Enterprise Server
- If you run 3.22.xupdate to 3.22.3 or laterPatch update: breaking changes are unlikely
- If you run 3.21.xupdate to 3.21.8 or laterPatch update: breaking changes are unlikely
- If you run 3.20.xupdate to 3.20.10 or laterPatch update: breaking changes are unlikely
- If you run 3.19.xupdate to 3.19.14 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
GitHub Enterprise Server
Affected versions Fixed in from 3.22.0 to before 3.22.3 3.22.3 from 3.21.0 to before 3.21.8 3.21.8 from 3.20.0 to before 3.20.10 3.20.10 from 3.19.0 to before 3.19.14 3.19.14
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.