Vulnerability · Published Sep 24, 2021 · Assigned by GitHub_P

CVE-2021-22868Unsafe configuration options in GitHub Pages leading to path traversal on GitHub Enterprise Server

Medium 4.3

In plain English

A medium-severity command injection in GitHub Enterprise Server from GitHub. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities).

Severity (CVSS NVD)4.3Medium
Exploit odds (30 days)0.9%top 39.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.8 and was fixed in 3.1.8, 3.0.16, and 2.22.22. This vulnerability was reported via the GitHub Bug Bounty program. This is the result of an incomplete fix for CVE-2021-22867.

Affected products (as reported)

VendorProductVersions
GitHub GitHub Enterprise Server 2.22 – before 2.22.223.0 – before 3.0.163.1 – before 3.1.8

Weakness: CWE-77

References