CVE-2026-104608
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.
How to fix
- GitHub Enterprise Server3.19.*, 3.20.*, 3.21.*, 3.22.* or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| GitHub Enterprise Server | 3.19.0 ≤ v < 3.19.*, 3.20.0 ≤ v < 3.20.*, 3.21.0 ≤ v < 3.21.*, 3.22.0 ≤ v < 3.22.* | 3.19.*, 3.20.*, 3.21.*, 3.22.* |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.