CVE-2021-22867
JSON

6.5medium

Unsafe configuration options in GitHub Pages leading to path traversal on GitHub Enterprise Server

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
1.17% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_P

Description

A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to read files on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.1.3 and was fixed in 3.1.3, 3.0.11, and 2.22.17. This vulnerability was reported via the GitHub Bug Bounty program.

Affected

Product or packageVersionsReported by
GitHub GitHub Enterprise Serverfrom 2.22 before 2.22.17, from 3.0 before 3.0.11, from 3.1 before 3.1.3CVE List
github enterprise_serverbefore 2.22.17, from 3.0.0 before 3.0.11, from 3.1.0 before 3.1.3NVD

All scores

NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N

Classification

What each source says

CVE List

A path traversal vulnerability was identified in GitHub Enterprise Server that could be exploited when building a GitHub Pages site. User-controlled configuration options used by GitHub Pages were not sufficiently restricted and made it possible to read files on the GitHub Enterprise Server instance. To exploit this vulnerability, an attacker would need permission to create and build a GitHub Pages site on the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.1.3 and was fixed in 3.1.3, 3.0.11, and 2.22.17. This vulnerability was reported via the GitHub Bug Bounty program.

NVD (es)

Se ha identificado una vulnerabilidad de salto de ruta en GitHub Enterprise Server que podría ser explotado cuando se construye un sitio de GitHub Pages. Las opciones de configuración controladas por el usuario utilizadas por GitHub Pages no estaban suficientemente restringidas y hacían posible leer archivos en la instancia de GitHub Enterprise Server. Para explotar esta vulnerabilidad, un atacante necesitaría permiso para crear y construir un sitio de GitHub Pages en la instancia de GitHub Enterprise Server. Esta vulnerabilidad afectaba a todas las versiones de GitHub Enterprise Server anteriores a 3.1.3 y fue corregida en las versiones 3.1.3, 3.0.11 y 2.22.17. Esta vulnerabilidad fue reportada por medio del programa GitHub Bug Bounty

References

Sources

SourceRecordLicence
CVE ListCVE-2021-22867 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-22867 changed 2026-06-17Public domain