CVE-2026-104608

Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service

Published Nov 3, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free in GitHub Enterprise Server’s Git service (babeld) that allows an authenticated attacker with SSH access to modify internal collections during a re‑entrant callback, leading to a controlled write and execution of arbitrary commands as the babeld process. This also permits the attacker to read environment secrets exposed by babeld. The flaw requires per‑build memory offsets and can crash babeld if exploitation fails, demonstrating a low‑threshold exploitation path for an inside user.

Affected Systems

GitHub Enterprise Server versions prior to 3.23 are vulnerable. The security fix was released in patch sub‑versions 3.22.3, 3.21.8, 3.20.10, and 3.19.14, so any 3.22.x, 3.21.x, 3.20.x, or 3.19.x before those releases remain exposed.

Risk and Exploitability

The CVSS score of 7.7 classifies the vulnerability as high severity. EPSS data is not available and the flaw is not listed in CISA KEV, indicating no publicly documented exploits yet. Nevertheless, because an attacker must possess SSH credentials and the bug can be triggered remotely, the risk to organizations enabling SSH access to GitHub servers is significant. Successful exploitation results in denial of service and privileged code execution on the host, making the threat high before a patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest security patch for your GitHub Enterprise Server version (e.g., upgrade to 3.22.3, 3.21.8, 3.20.10, or 3.19.14 as appropriate).
  • Restrict or temporarily disable SSH access to the Git service for users who do not require it, ensuring only trusted administrators can connect.
  • Set up automated health monitoring for the babeld service to detect crashes and trigger automatic restarts.

Generated by OpenCVE AI on November 4, 2026 at 04:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Github
Github enterprise Server
Vendors & Products Github
Github enterprise Server
Type Values Removed Values Added
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.
Title Use-after-free vulnerability in GitHub Enterprise Server allowed remote code execution in the Git service
Weaknesses CWE-1265
CWE-416
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:N/SA:N'}

Weaknesses
  • CWE-1265

    Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
GitHub_P
Published
Updated
Nov 6, 2026, 7:10 PM
Reserved
Oct 2, 2026, 3:42 AM
Status
Awaiting Analysis
Published
Nov 3, 2026, 11:17 PM
Modified
Nov 12, 2026, 10:09 PM