Description
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an unauthenticated attacker to delete arbitrary files and directories on the instance, including the entire user storage directory containing Git LFS objects, release assets, attachments, and avatars. The X-GitHub-Request-Id request header was used without sanitization as a filesystem path segment for the upload buffer directory, so a traversal value pointed the buffer at an arbitrary path and the deferred cleanup routine recursively removed the traversed target. Exploitation required only network reachability to the instance and no authentication, and it worked even when private mode was enabled. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.21.4, 3.20.6, 3.19.10, 3.18.13 and 3.17.19. This vulnerability was reported via the GitHub Bug Bounty program.
Published: 2026-08-05
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal bug causes the X-GitHub-Request-Id header to be used directly as a file system path segment for an upload buffer. An attacker can craft a traversal value that points the buffer to any path on the host and trigger the deferred cleanup routine to recursively delete the target. This deletes arbitrary files and directories, including user storage, Git LFS objects, release assets, attachments, and avatars. The vulnerability leads to loss of data and denial of service by removing essential assets, and it also exposes the instance to potential data tampering if an attacker pre‑writes files before triggering cleanup.

Affected Systems

GitHub Enterprise Server for all releases before version 3.22. The problem was fixed in 3.21.4, 3.20.6, 3.19.10, 3.18.13 and 3.17.19. Any deployment of GitHub Enterprise Server that has not applied one of these patches is affected.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity. No authentication is required; the attacker only needs network access to the instance. The vulnerability is publicly documented but not yet listed in the CISA KEV catalog and its EPSS score is unavailable, though the lack of a patch and wide reach suggest a non‑negligible risk. Attackers can exploit the flaw simply by sending an HTTP request with a crafted X‑GitHub‑Request‑Id header, making the window for exploitation wide and easy to automate.

Generated by OpenCVE AI on August 5, 2026 at 21:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade GitHub Enterprise Server to a version that includes the patch, such as 3.21.4 or later
  • If an upgrade is not immediately possible, block or filter the X‑GitHub‑Request‑Id header at the network perimeter to prevent the malformed value from reaching the server
  • Restrict network access to the GitHub Enterprise Server so that only trusted hosts can reach it, limiting exposure to the unauthenticated vulnerability

Generated by OpenCVE AI on August 5, 2026 at 21:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Github
Github enterprise Server
Vendors & Products Github
Github enterprise Server

Wed, 05 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Description A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an unauthenticated attacker to delete arbitrary files and directories on the instance, including the entire user storage directory containing Git LFS objects, release assets, attachments, and avatars. The X-GitHub-Request-Id request header was used without sanitization as a filesystem path segment for the upload buffer directory, so a traversal value pointed the buffer at an arbitrary path and the deferred cleanup routine recursively removed the traversed target. Exploitation required only network reachability to the instance and no authentication, and it worked even when private mode was enabled. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.21.4, 3.20.6, 3.19.10, 3.18.13 and 3.17.19. This vulnerability was reported via the GitHub Bug Bounty program.
Title Path traversal in GitHub Enterprise Server allowed unauthenticated deletion of instance storage via the X-GitHub-Request-Id header
Weaknesses CWE-22
References
Metrics cvssV4_0

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


Subscriptions

Github Enterprise Server
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_P

Published:

Updated: 2026-08-05T20:05:53.800Z

Reserved: 2026-07-27T13:19:24.539Z

Link: CVE-2026-17556

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T21:45:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')