# CVE-2022-46255: Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.60%, higher than 76% of CVEs (2026-12-02)
- Published: 2022-12-14T00:00:00.000Z
- Modified: 2026-06-17T05:11:24.237Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_P

## 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.

(As written by CVE List.)

## Affected

- GitHub GitHub Enterprise Server: from 3.7 before 3.7.1
- github enterprise_server: 3.7.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://docs.github.com/en/enterprise-server%403.7/admin/release-notes#3.7.1>

## Sources

- CVE List: [CVE-2022-46255](https://www.cve.org/CVERecord?id=CVE-2022-46255), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-46255](https://nvd.nist.gov/vuln/detail/CVE-2022-46255), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-46255 · Whole record: https://cve.day/CVE-2022-46255.json · Rebuilt by cve.day 2026-11-25T22:58:17.536Z
