CVE-2023-32080: Github.com/pterodactyl/wings Wings Vulnerable To Escape To Vulnerability

CRITICAL
Advisory Identifier: GHSA-p744-4q6p-hvc2
CVSS 9.0
CWE-250
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-32080
GHSA Identifier GHSA-p744-4q6p-hvc2
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-250: Execution with Unnecessary Privileges
Affected Product Github.com/pterodactyl/wings
Package Ecosystem Go
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/pterodactyl/wings fixed: 1.7.5
Upgrade github.com/pterodactyl/wings to 1.7.5
github.com/pterodactyl/wings fixed: 1.11.6
Upgrade github.com/pterodactyl/wings to 1.11.6
Verify Direct and Transitive Dependencies

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

### Impact This 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). ### Patches This 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`. Anyone running `v1.11.x` should upgrade to `v1.11.6` and anyone running `v1.7.x` should upgrade to `v1.7.5`. ### Workarounds Running 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. SELinux 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. TL;DR: None at this time. ### Extra details It 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.

CVE-2023-32080 Affected Github.com/pterodactyl/wings Versions

2 component(s)
Fixed Versions:
1.7.51.11.6
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?
CVE-2023-32080 is a security vulnerability in Github.com/pterodactyl/wings involving Wings vulnerable to escape to host from installation container under CWE-250: Execution with Unnecessary Privileges.
Which Github.com/pterodactyl/wings versions are affected?
Affected versions include releases prior to 1.7.5, 1.11.6 across affected packages: github.com/pterodactyl/wings.
What version fixes CVE-2023-32080?
Upgrading to 1.7.5, 1.11.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pterodactyl/wings affected?
Yes, github.com/pterodactyl/wings is affected in releases prior to 1.7.5, 1.11.6. Upgrade your dependency to 1.7.5, 1.11.6 or later.
What is the CVSS score of CVE-2023-32080?
CVE-2023-32080 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-32080?
CVE-2023-32080 is classified under CWE-250: Execution with Unnecessary Privileges (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.).
How can I check Go dependencies for CVE-2023-32080?
Run the dependency tree command: 'inspect dependencies for github.com/pterodactyl/wings'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}