CVE-2023-25152: Github.com/pterodactyl/wings Pterodactyl Wings Contains UNIX Symbolic Vulnerability

HIGH
Advisory Identifier: GHSA-p8r3-83r8-jwj5
CVSS 8.4
CWE-59 CWE-61
Published
Advisory Summary

CVE-2023-25152 is a HIGH (CVSS 8.4) pterodactyl wings contains unix symbolic vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/pterodactyl/wings libraries in the Go ecosystem. The issue involves pterodactyl wings contains unix symbolic link (symlink) following. Remediation is available by upgrading affected packages to version 1.7.3, 1.11.3.

CVE-2023-25152 at a Glance

CVE Identifier CVE-2023-25152
GHSA Identifier GHSA-p8r3-83r8-jwj5
Severity HIGH
CVSS v3.1 Base Score 8.4
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Github.com/pterodactyl/wings
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2023-25152

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.3
Upgrade github.com/pterodactyl/wings to 1.7.3
github.com/pterodactyl/wings fixed: 1.11.3
Upgrade github.com/pterodactyl/wings to 1.11.3
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-25152, 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.3), 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-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. 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. The vulnerability can be used to create new files and on the host system that previously did not exist, potentially allowing attackers to change their resource allocations, promote their containers to privileged mode, or potentially add ssh authorized keys to allow the attacker access to a remote shell on the target machine. In order to use this exploit, an attacker must have an existing "server" allocated and controlled by Wings. Information on how the exploitation of this vulnerability works will be released on February 24th, 2023 in North America. ### Patches This vulnerability has been resolved in version `v1.11.3` of Wings, and has been back-ported to the 1.7 release series in `v1.7.3`. Anyone running `v1.11.x` should upgrade to `v1.11.3` and anyone running `v1.7.x` should upgrade to `v1.7.3`. ### Workarounds None at this time.

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

2 component(s)
Fixed Versions:
1.7.31.11.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pterodactyl/wings
Go
< 1.7.3
1.7.3
github.com/pterodactyl/wings
Go
≥ 1.11.0
< 1.11.3
1.11.3

References

Frequently Asked Questions

What is CVE-2023-25152?
CVE-2023-25152 is a security vulnerability in Github.com/pterodactyl/wings involving Pterodactyl Wings contains UNIX Symbolic Link (Symlink) Following under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Github.com/pterodactyl/wings versions are affected?
Affected versions include releases prior to 1.7.3, 1.11.3 across affected packages: github.com/pterodactyl/wings.
What version fixes CVE-2023-25152?
Upgrading to 1.7.3, 1.11.3 (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.3, 1.11.3. Upgrade your dependency to 1.7.3, 1.11.3 or later.
What is the CVSS score of CVE-2023-25152?
CVE-2023-25152 has a CVSS v3.1 base score of 8.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H.
What CWE is associated with CVE-2023-25152?
CVE-2023-25152 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check Go dependencies for CVE-2023-25152?
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-p8r3-83r8-jwj5",
  "modified" : "2023-02-08T22:40:37Z",
  "published" : "2023-02-08T18:19:56Z",
  "aliases" : [ "CVE-2023-25152" ],
  "summary" : "Pterodactyl Wings contains UNIX Symbolic Link (Symlink) Following",
  "details" : "### Impact\n\nThis vulnerability impacts anyone running the affected versions of Wings.  The vulnerability can be used to create new files and on the host system that previously did not exist, potentially allowing attackers to change their resource allocations, promote their containers to privileged mode, or potentially add ssh authorized keys to allow the attacker access to a remote shell on the target machine.\n\nIn order to use this exploit, an attacker must have an existing \"server\" allocated and controlled by Wings.  Information on how the exploitation of this vulnerability works will be released on February 24th, 2023 in North America.\n\n### Patches\n\nThis vulnerability has been resolved in version `v1.11.3` of Wings, and has been back-ported to the 1.7 release series in `v1.7.3`.\n\nAnyone running `v1.11.x` should upgrade to `v1.11.3` and anyone running `v1.7.x` should upgrade to `v1.7.3`.\n\n### Workarounds\n\nNone at this time.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pterodactyl/wings"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pterodactyl/wings"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.11.0"
      }, {
        "fixed" : "1.11.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/security/advisories/GHSA-p8r3-83r8-jwj5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25152"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/commit/dac9685298c3c1c49b3109fa4241aa88272b9f14"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pterodactyl/wings"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/releases/tag/v1.11.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/releases/tag/v1.7.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-59", "CWE-61" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T18:19:56Z",
    "nvd_published_at" : "2023-02-08T19:15:00Z"
  }
}