CVE-2022-46255

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

State
Published
Severity
9.8 Critical
Published
Dec 14, 2022
Updated
Apr 22, 2025
Reserved
Nov 28, 2022

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
GitHub Enterprise ServerGitHub
  • 3.7 to before 3.7.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.