8.6high
Path traversal vulnerability in GitHub Enterprise Server allowed writing files to arbitrary repository paths, including GitHub Actions workflow files, via unchecked Dependabot dependency-file paths
- Severity
- 8.6high CVSS:4.0 by GitHub_P
- Exploit likelihood
- 0.94% (higher than 61% 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 attacker with code execution inside a Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/, because path validation did not check the actual write destination. The initial fix in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, and 3.17.18 was incomplete because validation checked the supplied symlink target, while the publisher wrote the file using its directory and name. Writing GitHub Actions workflow files required the Dependabot installation to have workflows: write permission. Depending on repository permissions and workflow configuration, including a relevant pull_request_target workflow or auto-merge, an injected workflow could execute with access to GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fully fixed in versions 3.22.3, 3.21.8, 3.20.10, and 3.19.14. This vulnerability was reported via the GitHub Bug Bounty program.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GitHub Enterprise Server | from 3.17.0 before 3.17.*, from 3.18.0 before 3.18.*, from 3.19.0 before 3.19.*, from 3.20.0 before 3.20.*, from 3.21.0 before 3.21.*, from 3.22.0 before 3.22.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A path traversal vulnerability was identified in GitHub Enterprise Server that allowed an attacker with code execution inside a Dependabot updater container to write files to arbitrary repository paths, including GitHub Actions workflow files under .github/workflows/, because path validation did not check the actual write destination. The initial fix in versions 3.21.3, 3.20.5, 3.19.9, 3.18.12, and 3.17.18 was incomplete because validation checked the supplied symlink target, while the publisher wrote the file using its directory and name. Writing GitHub Actions workflow files required the Dependabot installation to have workflows: write permission. Depending on repository permissions and workflow configuration, including a relevant pull_request_target workflow or auto-merge, an injected workflow could execute with access to GitHub Actions secrets. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fully fixed in versions 3.22.3, 3.21.8, 3.20.10, and 3.19.14. 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 que tenía ejecución de código dentro del contenedor del actualizador de Dependabot escribir archivos en rutas de repositorio arbitrarias, incluyendo archivos de flujo de trabajo de GitHub Actions bajo .github/workflows/, ya que la validación de ruta no verificaba la ruta efectiva que el atacante podía controlar a través del directorio del archivo de dependencia y el objetivo del enlace simbólico. Si el repositorio utilizaba un flujo de trabajo pull_request_target o tenía la fusión automática habilitada, un flujo de trabajo inyectado podría ejecutarse con acceso a los secretos de GitHub Actions del repositorio. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la 3.22 y fue corregida en las versiones 3.21.3, 3.20.5, 3.19.9, 3.18.12, 3.17.18.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-15343 changed 2026-11-03 | CVE Terms of Use |
| NVD | CVE-2026-15343 changed 2026-11-03 | Public domain |