CVE-2026-17556Path traversal in GitHub Enterprise Server allowed unauthenticated deletion of instance…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by GitHub_P, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GitHub Enterprise Server: affected: 3.17.0 to 3.17.18, 3.18.0 to 3.18.12, 3.19.0 to 3.19.9, 3.20.0 to 3.20.5, 3.21.0 to 3.21.3; fixed in
3.17.19,3.18.13,3.19.10,3.20.6,3.21.4
Vendor advisories:
- https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.19 (release-notes)
- https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.13 (release-notes)
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.10 (release-notes)
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.6 (release-notes)
- https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.4 (release-notes)
References
- https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.19
- https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.13
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.10
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.6
- https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.