BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-22867 in Github Enterprise Server

Medium 6.5

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...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
EPSS1.2%
EPSS percentile67th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Github Enterprise Server < 2.22.17 ≥ 3.0.0, < 3.0.11 ≥ 3.1.0, < 3.1.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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.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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-22867
BreachSpider IDBS-2021-GLOBAL-076725-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published2021-07-14
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

CWE-77: Command Injection

Attacker injects operating system commands through application inputs passed to a shell or system call.

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22, CWE-77

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

Show all 12

CAPEC-15 Command Delimiters via CWE-77

CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77

CAPEC-75 Manipulating Writeable Configuration Files via CWE-77

CAPEC-126 Path Traversal via CWE-22

CAPEC-136 LDAP Injection via CWE-77

CAPEC-183 IMAP/SMTP Command Injection via CWE-77

CAPEC-248 Command Injection via CWE-77

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A path traversal vulnerability in GitHub Enterprise Server allows attackers with permission to create and build GitHub Pages sites to read files on the server instance due to insufficiently restricted user-controlled configuration options.

The vulnerability arises from the use of user-controlled configuration options in GitHub Pages that are not properly sanitized, enabling attackers to traverse directories and access files they should not have access to.

Questions

What is CVE-2021-22867?

A path traversal vulnerability in GitHub Enterprise Server allows attackers with permission to create and build GitHub Pages sites to read files on the server instance due to insufficiently restricted user-controlled configuration options.

What is the CVSS score for CVE-2021-22867?

CVE-2021-22867 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 1.2%.

Is CVE-2021-22867 actively exploited?

No confirmed active exploitation of CVE-2021-22867 as of 2026-09-25.

How do I remediate CVE-2021-22867?

Priority: MEDIUM. Advisory: https://docs.github.com/en/enterprise-server%402.22/admin/release-notes#2.22.17

What systems are affected by CVE-2021-22867?

CVE-2021-22867 affects Github Enterprise Server.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Github","product":"Enterprise Server","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.