What’s Vulnerable › Vulnerabilities
CVE-2022-46255: Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-12-14 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- GitHub Enterprise Server: 3.7.0
References
- https://docs.github.com/en/enterprise-server%403.7/admin/release-notes#3.7.1
- https://docs.github.com/en/enterprise-server%403.7/admin/release-notes#3.7.1
Get alerted when CVE-2022-46255 or the next vulnerability affects your stack