CVE-2026-104608Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by GitHub_P, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GitHub Enterprise Server: affected: 3.19.0 to before 3.19.*, 3.20.0 to before 3.20.*, 3.21.0 to before 3.21.*, 3.22.0 to before 3.22.*; fixed in
3.19.14,3.20.10,3.21.8,3.22.3
Vendor advisories:
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.14 (release-notes)
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.10 (release-notes)
- https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.8 (release-notes)
- https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.3 (release-notes)
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.