CVE-2022-46255: Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
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 Software
Event History
Frequently Asked Questions
What is CVE-2022-46255?
CVE-2022-46255 is a vulnerability in GitHub Enterprise Server that allows remote code execution.
What is the severity of CVE-2022-46255?
CVE-2022-46255 has a severity rating of 9.8 (Critical).
How does CVE-2022-46255 impact GitHub Enterprise Server?
CVE-2022-46255 allows an attacker to remotely execute code on a vulnerable GitHub Enterprise Server.
Which version of GitHub Enterprise Server is affected by CVE-2022-46255?
GitHub Enterprise Server version 3.7.0 is affected by CVE-2022-46255.
How can I prevent CVE-2022-46255?
To prevent CVE-2022-46255, it is recommended to update GitHub Enterprise Server to version 3.7.1 or later.