CVE-2026-17556
JSON

8.8high

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

Severity
8.8high CVSS:4.0 by GitHub_P
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_P

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.

Affected

Product or packageVersionsReported by
GitHub Enterprise Serverfrom 3.17.0 up to 3.17.18, from 3.18.0 up to 3.18.12, from 3.19.0 up to 3.19.9, from 3.20.0 up to 3.20.5, from 3.21.0 up to 3.21.3CVE List
github enterprise_serverbefore 3.17.19, from 3.18.0 before 3.18.13, from 3.19.0 before 3.19.10, from 3.20.0 before 3.20.6, from 3.21.0 before 3.21.4NVD

All scores

GitHub_P8.8high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de salto de ruta fue identificada en GitHub Enterprise Server que permitía a un atacante no autenticado eliminar archivos y directorios arbitrarios en la instancia, incluyendo el directorio completo de almacenamiento de usuario que contenía objetos Git LFS, activos de lanzamiento, adjuntos y avatares. El encabezado de solicitud X-GitHub-Request-Id fue utilizado sin sanitización como un segmento de ruta del sistema de archivos para el directorio de búfer de carga, por lo que un valor de salto apuntaba el búfer a una ruta arbitraria y la rutina de limpieza diferida eliminaba recursivamente el objetivo recorrido. La explotación requería solo accesibilidad de red a la instancia y ninguna autenticación, y funcionaba incluso cuando el modo privado estaba habilitado. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la 3.22 y fue corregida en las versiones 3.21.4, 3.20.6, 3.19.10, 3.18.13 y 3.17.19. Esta vulnerabilidad fue reportada a través del programa GitHub Bug Bounty.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-17556 changed 2026-08-06CVE Terms of Use
NVDCVE-2026-17556 changed 2026-10-23Public domain