CVE-2026-17556: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitHub Enterprise Server
CVE-2026-17556 is a path traversal vulnerability in GitHub Enterprise Server that allows unauthenticated attackers to delete arbitrary files and directories on the affected instance. The flaw arises from improper sanitization of the X-GitHub-Request-Id header, which is used as a filesystem path segment, enabling traversal to arbitrary paths. Exploitation requires only network access and works even when private mode is enabled. The vulnerability affects versions prior to 3.22 and was fixed in several patch releases including 3.21.4, 3.20.6, 3.19.10, 3.18.13, and 3.17.19. It was reported through the GitHub Bug Bounty program and has a high CVSS 4.0 score of 8.8.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-17556) in GitHub Enterprise Server involves improper limitation of a pathname to a restricted directory (CWE-22). The X-GitHub-Request-Id HTTP header is used without proper sanitization as part of the filesystem path for the upload buffer directory. An attacker can supply a crafted header value containing path traversal sequences to redirect the buffer directory to an arbitrary location. The deferred cleanup routine then recursively deletes the targeted directory and its contents. This allows an unauthenticated attacker with network access to delete arbitrary files and directories, including critical user storage data such as Git LFS objects, release assets, attachments, and avatars. The vulnerability affects all versions 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. No known exploits in the wild have been reported.
Potential Impact
An unauthenticated attacker can delete arbitrary files and directories on the GitHub Enterprise Server instance, including critical user data such as Git LFS objects, release assets, attachments, and avatars. This can lead to significant data loss and disruption of service. The vulnerability can be exploited remotely without authentication and is effective even when private mode is enabled, increasing the risk and potential impact.
Mitigation Recommendations
This vulnerability has been fixed in GitHub Enterprise Server versions 3.21.4, 3.20.6, 3.19.10, 3.18.13, and 3.17.19. Users should upgrade to one of these fixed versions or later to remediate the issue. Since this is not a cloud service, patching the affected software is required. There is no indication that any temporary or alternative mitigations are available or recommended.
CVE-2026-17556: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitHub Enterprise Server
Description
CVE-2026-17556 is a path traversal vulnerability in GitHub Enterprise Server that allows unauthenticated attackers to delete arbitrary files and directories on the affected instance. The flaw arises from improper sanitization of the X-GitHub-Request-Id header, which is used as a filesystem path segment, enabling traversal to arbitrary paths. Exploitation requires only network access and works even when private mode is enabled. The vulnerability affects versions prior to 3.22 and was fixed in several patch releases including 3.21.4, 3.20.6, 3.19.10, 3.18.13, and 3.17.19. It was reported through the GitHub Bug Bounty program and has a high CVSS 4.0 score of 8.8.
CVSS v4.0
Score 8.8high
Affected software
GitHub
Enterprise Server
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-17556) in GitHub Enterprise Server involves improper limitation of a pathname to a restricted directory (CWE-22). The X-GitHub-Request-Id HTTP header is used without proper sanitization as part of the filesystem path for the upload buffer directory. An attacker can supply a crafted header value containing path traversal sequences to redirect the buffer directory to an arbitrary location. The deferred cleanup routine then recursively deletes the targeted directory and its contents. This allows an unauthenticated attacker with network access to delete arbitrary files and directories, including critical user storage data such as Git LFS objects, release assets, attachments, and avatars. The vulnerability affects all versions 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. No known exploits in the wild have been reported.
Potential Impact
An unauthenticated attacker can delete arbitrary files and directories on the GitHub Enterprise Server instance, including critical user data such as Git LFS objects, release assets, attachments, and avatars. This can lead to significant data loss and disruption of service. The vulnerability can be exploited remotely without authentication and is effective even when private mode is enabled, increasing the risk and potential impact.
Mitigation Recommendations
This vulnerability has been fixed in GitHub Enterprise Server versions 3.21.4, 3.20.6, 3.19.10, 3.18.13, and 3.17.19. Users should upgrade to one of these fixed versions or later to remediate the issue. Since this is not a cloud service, patching the affected software is required. There is no indication that any temporary or alternative mitigations are available or recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_P
- Date Reserved
- 2026-07-27T13:19:24.539Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a739c88bf8831d5396b2ff6
Added to database: 08/05/2026, 20:26:48 UTC
Last enriched: 08/13/2026, 17:30:52 UTC
Last updated: 09/19/2026, 10:01:30 UTC
Views: 172
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.