CVE-2023-25152 Symbolic Link (Symlink) Following in github.com/pterodactyl/wings

High 8.4 Published Updated

Attackers with allocated servers can exploit symlink following to modify host files, escalate privileges, or gain remote shell access.

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-2023-25152?

CVE-2023-25152 is a high-severity path traversal vulnerability in pterodactyl wings, published on 8 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Wings is Pterodactyl's server control plane. Affected versions are subject to a vulnerability which can be used to create new files and directory structures 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 the Wings Daemon. This vulnerability has been resolved in version `v1.11.3` of the Wings Daemon, 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`. There are no known workarounds for this vulnerability.

### Workarounds

None at this time.

Weakness: CWE-59

Which versions are affected by CVE-2023-25152?

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

PackageAffectedFixed in
github.com/pterodactyl/wings GoAll versions1.7.3, 1.11.3
github.com/pterodactyl/wings GoAll versions1.7.3
github.com/pterodactyl/wings GoAll versions1.7.3
github.com/pterodactyl/wings GoFrom 1.11.01.11.3
github.com/pterodactyl/wings GoFrom 1.11.01.11.3

Products include Pterodactyl Wings.

How do I fix CVE-2023-25152?

Upgrade github.com/pterodactyl/wings to a fixed version for your release line: 1.7.3 or 1.11.3.

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

Is CVE-2023-25152 being exploited?

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

Sources

Also known as GHSA-p8r3-83r8-jwj5, GO-2023-1542.

Is CVE-2023-25152 in your software?

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

Check your SBOMs for free