CVE-2024-34066: Github.com/pterodactyl/wings Pterodactyl Wings Vulnerable To Arbitrary Vulnerability

HIGH
Advisory Identifier: GHSA-gqmf-jqgv-v8fw
CVSS 8.4
CWE-552
Published
Advisory Summary

CVE-2024-34066 is a HIGH (CVSS 8.4) pterodactyl wings vulnerable to arbitrary vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Github.com/pterodactyl/wings libraries in the Go ecosystem. The issue involves pterodactyl wings vulnerable to arbitrary file write/read. Remediation is available by upgrading affected packages to version 1.11.12.

CVE-2024-34066 at a Glance

CVE Identifier CVE-2024-34066
GHSA Identifier GHSA-gqmf-jqgv-v8fw
Severity HIGH
CVSS v3.1 Base Score 8.4
CWE Classification CWE-552: Files or Directories Accessible to External Parties
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:L/PR:H/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
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-2024-34066

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.11.12
Upgrade github.com/pterodactyl/wings to 1.11.12
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-2024-34066, 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.11.12), 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. 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 If the Wings token is leaked either by viewing the node configuration or posting it accidentally somewhere, an attacker can use it to gain arbitrary file write and read access on the node the token is associated to. ### Workarounds Enabling the `ignore_panel_config_updates` option or updating to the latest version of Wings are the only known workarounds. ### Patches https://github.com/pterodactyl/wings/commit/5415f8ae07f533623bd8169836dd7e0b933964de

CVE-2024-34066 Affected Github.com/pterodactyl/wings Versions

1 component(s)
Fixed Versions:
1.11.12
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pterodactyl/wings
Go
< 1.11.12
1.11.12

References

Frequently Asked Questions

What is CVE-2024-34066?
CVE-2024-34066 is a security vulnerability in Github.com/pterodactyl/wings involving Pterodactyl Wings vulnerable to Arbitrary File Write/Read under CWE-552: Files or Directories Accessible to External Parties.
Which Github.com/pterodactyl/wings versions are affected?
Affected versions include releases prior to 1.11.12 across affected packages: github.com/pterodactyl/wings.
What version fixes CVE-2024-34066?
Upgrading to 1.11.12 (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.11.12. Upgrade your dependency to 1.11.12 or later.
What is the CVSS score of CVE-2024-34066?
CVE-2024-34066 has a CVSS v3.1 base score of 8.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-34066?
CVE-2024-34066 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Go dependencies for CVE-2024-34066?
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-gqmf-jqgv-v8fw",
  "modified" : "2024-05-03T20:28:10Z",
  "published" : "2024-05-03T20:28:10Z",
  "aliases" : [ "CVE-2024-34066" ],
  "summary" : "Pterodactyl Wings vulnerable to Arbitrary File Write/Read",
  "details" : "### Impact\n\nIf the Wings token is leaked either by viewing the node configuration or posting it accidentally somewhere, an attacker can use it to gain arbitrary file write and read access on the node the token is associated to.\n\n### Workarounds\n\nEnabling the `ignore_panel_config_updates` option or updating to the latest version of Wings are the only known workarounds.\n\n### Patches\n\nhttps://github.com/pterodactyl/wings/commit/5415f8ae07f533623bd8169836dd7e0b933964de",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/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.11.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/security/advisories/GHSA-gqmf-jqgv-v8fw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34066"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pterodactyl/wings/commit/5415f8ae07f533623bd8169836dd7e0b933964de"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pterodactyl/wings"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-03T20:28:10Z",
    "nvd_published_at" : "2024-05-03T18:15:09Z"
  }
}