CVE-2026-17556

Path traversal in GitHub Enterprise Server allowed unauthenticated deletion of instance storage via the X-GitHub-Request-Id header

State
Published
Severity
8.8 High
Published
Aug 5, 2026
Updated
Aug 6, 2026
Reserved
Jul 27, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.08.8 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_P

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
Enterprise ServerGitHub
  • 3.17.0 through 3.17.18Affectedfrom 3.17.19Not affected
  • 3.18.0 through 3.18.12Affectedfrom 3.18.13Not affected
  • 3.19.0 through 3.19.9Affectedfrom 3.19.10Not affected
  • 3.20.0 through 3.20.5Affectedfrom 3.20.6Not affected
  • 3.21.0 through 3.21.3Affectedfrom 3.21.4Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.