Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE

CVE-2022-46255

9.8CRITICAL

Key Information

Vendor
Github
Status
Github Enterprise Server
Vendor
CVE Published:
14 December 2022

Summary

An improper limitation of a pathname to a restricted directory vulnerability was identified in GitHub Enterprise Server that enabled remote code execution. A check was added within Pages to ensure the working directory is clean before unpacking new content to prevent an arbitrary file overwrite bug. This vulnerability affected only version 3.7.0 of GitHub Enterprise Server and was fixed in version 3.7.1. This vulnerability was reported via the GitHub Bug Bounty program.

Affected Version(s)

GitHub Enterprise Server < 3.7.1

Refferences

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Collectors

NVD DatabaseMitre Database

Credit

yvvdwf
.