CVE-2024-27102 Improper isolation of server file access in github.com/pterodactyl/wings

Critical 10.0 Published Updated

Attackers with allocated servers can read files outside the sandbox root on the host system in Pterodactyl Wings.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-27102?

CVE-2024-27102 is a critical path traversal vulnerability in pterodactyl wings, published on 13 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Wings is the server control plane for Pterodactyl Panel. This vulnerability impacts anyone running the affected versions of Wings. The vulnerability can potentially be used to access files and directories on the host system. The full scope of impact is exactly unknown, but reading files outside of a server's base directory (sandbox root) is possible. In order to use this exploit, an attacker must have an existing "server" allocated and controlled by Wings. Details on the exploitation of this vulnerability are embargoed until March 27th, 2024 at 18:00 UTC. In order to mitigate this vulnerability, a full rewrite of the entire server filesystem was necessary. Because of this, the size of the patch is massive, however effort was made to reduce the amount of breaking changes. Users are advised to update to version 1.11.9. There are no known workarounds for this vulnerability.

Weakness: CWE-363, CWE-362, CWE-22

Which versions are affected by CVE-2024-27102?

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.9
github.com/pterodactyl/wings GoAll versions1.11.9
github.com/pterodactyl/wings GoAll versions1.11.9

Products include Pterodactyl Wings.

How do I fix CVE-2024-27102?

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

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

Is CVE-2024-27102 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-27102 exists.

Sources

Also known as GHSA-494h-9924-xww9, GO-2024-2642.

Is CVE-2024-27102 in your software?

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

Check your SBOMs for free