CVE-2024-31220 Sunshine vulnerable to remote unauthenticated arbitrary file read

High 7.3 Published Updated

Remote attackers can read arbitrary files without authentication if the Sunshine configuration web interface is exposed to the network.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-31220?

CVE-2024-31220 is a high-severity path traversal vulnerability in LizardByte Sunshine, published on 5 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Sunshine is a self-hosted game stream host for Moonlight. Starting in version 0.16.0 and prior to version 0.18.0, an attacker may be able to remotely read arbitrary files without authentication due to a path traversal vulnerability. Users who exposed the Sunshine configuration web user interface outside of localhost may be affected, depending on firewall configuration. To exploit vulnerability, attacker could make an http/s request to the `node_modules` endpoint if user exposed Sunshine config web server to internet or attacker is on the LAN. Version 0.18.0 contains a patch for this issue. As a workaround, one may block access to Sunshine via firewall.

Weakness: CWE-22

Which versions are affected by CVE-2024-31220?

It affects 1 product.

Products include Lizardbyte Sunshine.

How do I fix CVE-2024-31220?

No fix has been published for CVE-2024-31220 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2024-31220 being exploited?

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

Sources

Also known as GHSA-6rg7-7m3w-w5wc.

Is CVE-2024-31220 in your software?

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

Check your SBOMs for free