CVE-2023-32080: Github.com/pterodactyl/wings Wings Vulnerable To Escape To Vulnerability
CRITICALCVE-2023-32080 is a CRITICAL (CVSS 9.0) wings vulnerable to escape to vulnerability (CWE-250: Execution with Unnecessary Privileges) affecting Github.com/pterodactyl/wings libraries in the Go ecosystem. The issue involves wings vulnerable to escape to host from installation container. Remediation is available by upgrading affected packages to version 1.7.5, 1.11.6.
CVE-2023-32080 at a Glance
Security Impact
CVSS: 9.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-32080
To remediate this vulnerability, upgrade all affected Github.com/pterodactyl/wings dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/pterodactyl/wings to 1.7.5
Upgrade github.com/pterodactyl/wings to 1.11.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pterodactyl/wings
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-32080, inspect your project dependencies for Github.com/pterodactyl/wings:
inspect dependencies for github.com/pterodactyl/wings
Analyze the terminal output to locate any version of Github.com/pterodactyl/wings in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-250: Execution with Unnecessary Privileges, where the product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses. In Github.com/pterodactyl/wings, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-32080 Affected Github.com/pterodactyl/wings Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pterodactyl/wings
|
Go |
< 1.7.5
|
1.7.5
|
|
github.com/pterodactyl/wings
|
Go |
≥ 1.11.0
< 1.11.6
|
1.11.6
|
References
Frequently Asked Questions
What is CVE-2023-32080?
Which Github.com/pterodactyl/wings versions are affected?
What version fixes CVE-2023-32080?
Is github.com/pterodactyl/wings affected?
What is the CVSS score of CVE-2023-32080?
What CWE is associated with CVE-2023-32080?
How can I check Go dependencies for CVE-2023-32080?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p744-4q6p-hvc2",
"modified" : "2023-05-11T19:54:17Z",
"published" : "2023-05-11T19:54:17Z",
"aliases" : [ "CVE-2023-32080" ],
"summary" : "Wings vulnerable to escape to host from installation container",
"details" : "### Impact\n\nThis vulnerability impacts anyone running the affected versions of Wings. This vulnerability can be used to gain access to the host system running Wings if a user is able to modify an server's install script or the install script executes code supplied by the user (either through environment variables, or commands that execute commands based off of user data).\n\n### Patches\n\nThis vulnerability has been resolved in version `v1.11.6` of Wings, and has been back-ported to the 1.7 release series in `v1.7.5`.\n\nAnyone running `v1.11.x` should upgrade to `v1.11.6` and anyone running `v1.7.x` should upgrade to `v1.7.5`.\n\n### Workarounds\n\nRunning Wings with a rootless container runtime may mitigate the severity of any attacks, however the majority of users are using container runtimes that run as root as per our documentation.\n\nSELinux may prevent attackers from performing certain operations against the host system, however privileged containers have a lot of freedom even on systems with SELinux enabled.\n\nTL;DR: None at this time.\n\n### Extra details\n\nIt should be noted that this was a known attack vector, for attackers to easily exploit this attack it would require compromising an administrator account on a Panel. However, certain eggs (the data structure that holds the install scripts that get passed to Wings) have an issue where they are unknowingly executing shell commands with escalated privileges provided by untrusted user data.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.7.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pterodactyl/wings"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/security/advisories/GHSA-p744-4q6p-hvc2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32080"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pterodactyl/wings"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/releases/tag/v1.11.6"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/releases/tag/v1.17.5"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/wings/releases/tag/v1.7.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-250" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-05-11T19:54:17Z",
"nvd_published_at" : "2023-05-10T21:15:08Z"
}
}