GitHub Enterprise Server
Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.19.0, < 3.19.*
- >= 3.20.0, < 3.20.*
- >= 3.21.0, < 3.21.*
- >= 3.22.0, < 3.22.*
Fixed in 3.19.*, 3.19.14, 3.20.*, 3.20.10, 3.21.*, 3.21.8, 3.22.*, 3.22.3
Mitigation
Upgrade Enterprise Server to 3.19.* or 3.19.14 or 3.20.* or 3.20.10 or 3.21.* or 3.21.8 or 3.22.* or 3.22.3 or later.
References
- Release notes docs.github.com/en/enterprise-server@3.19/admin/rel…
- Release notes docs.github.com/en/enterprise-server@3.20/admin/rel…
- Release notes docs.github.com/en/enterprise-server@3.21/admin/rel…
1 more
- Release notes docs.github.com/en/enterprise-server@3.22/admin/rel…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.