CVE-2026-104608
A remote code execution vulnerability was identified in GitHub Enterprise Server in the Git service (babeld).
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products · GitHub
| Product | Affected versions |
|---|---|
| Enterprise Server | from 3.19.0 before 3.19.* from 3.20.0 before 3.20.* from 3.21.0 before 3.21.* from 3.22.0 before 3.22.* |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.14
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.10
- https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.8
- https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.3
- https://github.com/advisories/GHSA-8r7w-x58w-955w
- https://nvd.nist.gov/vuln/detail/CVE-2026-104608