CVE-2022-46255
published critical CVSS 3.1 · 9.8Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitHub | — | GitHub Enterprise Server3.7 to < 3.7.1 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitHub | GitHub Enterprise Server | 3.7 to < 3.7.1 (affected · custom) | GitHub_P · cna |
Weaknesses
1- CWE-22
References
1Provider assertions
3GitHub_P · cna
Improper Limitation of a Pathname to a Restricted Directory in GitHub Enterprise Server leading to RCE
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ecae0450f5bbd3d68085690b512bde952502b3d3cbd89f0095a85bbe057a001f
- Ingested
- 23 Sep 2026, 08:03:36 UTC
- Source record
- Official CVE record