CVE-2024-34066 Arbitrary File Write/Read in Pterodactyl wings

High 8.5 Published Updated

An attacker with a leaked Wings token can read and write arbitrary files on the associated node, compromising server integrity and confidentiality.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-34066?

CVE-2024-34066 is a high-severity path traversal vulnerability in pterodactyl wings, published on 3 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Pterodactyl wings is the server control plane for Pterodactyl Panel. 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. This issue has been addressed in version 1.11.12 and users are advised to upgrade. Users unable to upgrade may enable the `ignore_panel_config_updates` option as a workaround.

Weakness: CWE-552

Which versions are affected by CVE-2024-34066?

3 open source packages ship an affected version, including github.com/pterodactyl/wings. It affects 1 product.

PackageAffectedFixed in
github.com/pterodactyl/wings GoAll versions1.11.12
github.com/pterodactyl/wings GoAll versions1.11.12
github.com/pterodactyl/wings GoAll versions1.11.12

Products include Pterodactyl Wings.

How do I fix CVE-2024-34066?

Upgrade github.com/pterodactyl/wings to 1.11.12 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-34066 being exploited?

There is no known exploitation of CVE-2024-34066 in the wild and no public exploit code.

Sources

Also known as GHSA-gqmf-jqgv-v8fw, GO-2024-2814.

Is CVE-2024-34066 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free