CVE-2022-46255

published 14 Dec 2022 · updated 22 Apr 2025

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

9.8CriticalCVSS 9.8EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 3.7.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitHub>=3.7 <3.7.13.7.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-46255 severity on Zeptric[![CVE-2022-46255](https://zeptric.io/badge/cve/CVE-2022-46255.svg)](https://zeptric.io/cve/CVE-2022-46255)