Read the docs

Use-after-free in GitHub Enterprise Server allows code execution

Priority LOW 36CWE-1265Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.

Summary

GitHub Enterprise Server releases before 3.23 have a use-after-free flaw in the Git service babeld (CWE-416). A re-entrant callback into the SSH library can modify a collection that babeld still references, invalidating those references. An attacker with an account and SSH access to the instance can turn this into arbitrary command execution as babeld, including disclosure of its environment secrets. Exploitation requires per-build memory offsets.

Written with Claude Haiku 5.5 from the sources below · 2026-11-04

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.004 34th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
GitHubEnterprise Server3.19.0 and later; 3.20.0 and later; 3.21.0 and later; 3.22.0 and later—No fix listedCNA
  • Enterprise Server VendorGitHub Affected 3.19.0 and later; 3.20.0 and later; 3.21.0 and later; 3.22.0 and later Fixed in — No fix listed CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*——GitHub
  • cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* Versions — — ·GitHub

Remediation

Upgrade to GitHub Enterprise Server 3.22.3, 3.21.8, 3.20.10 or 3.19.14.

Written with Claude Haiku 5.5 from the sources below · 2026-11-04

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    GitHub Enterprise Server 3.19.*, 3.20.* and 2 more versions

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2026-84843 Out-of-bounds read in GitHub Enterprise Server leaks process memoryPriority LOW 24
    • TI-2026-84842 GitHub Enterprise Server flaw lets attackers delete ChatOps settingsPriority LOW 23

Timeline

  1. 2026-11-03 Threatist record created from CVE-2026-104608
  2. 2026-11-04 Alias added: GHSA-8r7w-x58w-955w
  3. 2026-11-05 Priority changed: MEDIUM → LOW
  4. 2026-11-06 CISA SSVC decision points changed

References

  • TI-2024-04632 An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES)… CVSS 4.0CRITICAL 10.0
  • TI-2024-00181 Unsafe Reflection in Github Enterprise Server leading to Command Injection CVSS 3.1CRITICAL 9.8
  • TI-2024-00466 Privilege Escalation by Code Injection in the Management Console in GitHub Enterprise Server CVSS 3.1HIGH 8.8
  • TI-2022-08539 Integer overflow in table parsing extension leads to heap memory corruption CVSS 3.1CRITICAL 9.8
  • TI-2026-34990 GitHub MCP Server: Nil Pointer Dereference DoS in completion/complete Handler CVSS 3.1HIGH 7.5
  • TI-2026-32884 GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor CVSS 4.0HIGH 8.5
See all 178 →

Sources