title: Path traversal in GitHub Enterprise Server leading to remote code execution
description: A path traversal vulnerability was identified in GitHub Enterprise Server that allowed remote code execution when building a GitHub Pages site. 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 versions 3.8 and was fixed in versions 3.7.7, 3.6.10, 3.5.14, and 3.4.17. This vulnerability was reported via the GitHub Bug Bounty program.
problem types: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
affected:
{
defaultStatus: affected
product: Enterprise Server
vendor: GitHub
versions:
changes: [at: 3.4.17, status: unaffected], lessThanOrEqual: 3.4.16, status: affected, version: 3.4.0, versionType: semver
changes: [at: 3.5.14, status: unaffected], lessThanOrEqual: 3.5.13, status: affected, version: 3.5.0, versionType: semver
changes: [at: 3.6.10, status: unaffected], lessThanOrEqual: 3.6.9, status: affected, version: 3.6.0, versionType: semver
changes: [at: 3.7.7, status: unaffected], lessThanOrEqual: 3.7.6, status: affected, version: 3.7.0, versionType: semver
status: unaffected, version: 3.8.0
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 4.9
baseSeverity: MEDIUM
confidentialityImpact: LOW
integrityImpact: LOW
privilegesRequired: LOW
scope: CHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL