Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
CVE-2022-46255
Key Information:
- Vendor
Github
- Status
- CVE ID
- CVE ID:
- CVE-2022-46255
- Vendor
- CVE Published:
- 14 December 2022
- Fixed in
- Fixed in:
- 3.7.1
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach GitHub Enterprise Server. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Patch this week"
- It can be exploited remotely without credentials.
- Its CVSS severity is critical (9.8).
What is CVE-2022-46255?
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.
References
More Github Vulnerabilities
Improper Neutralization Vulnerability in GitHub Enterprise Server
Remote Code Execution Vulnerability in GitHub Enterprise Server
Cryptographic Signature Spoofing Vulnerability in GitHub Enterprise Server
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction