CVE-2024-31221 Clients removed during unpairing process may regain access if Sunshine was not restarted

Medium 5.9 Published Updated

Attackers can regain unauthorized access to Sunshine game streaming after unpairing devices if the service is not restarted.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-31221?

CVE-2024-31221 is a medium-severity authentication bypass vulnerability in LizardByte Sunshine, published on 8 Apr 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Sunshine is a self-hosted game stream host for Moonlight. Starting in version 0.10.0 and prior to version 0.23.0, after unpairing all devices in the web UI interface and then pairing only one device, all of the previously devices will be temporarily paired. Version 0.23.0 contains a patch for the issue. As a workaround, restarting Sunshine after unpairing all devices prevents the vulnerability.

Weakness: CWE-384

Which versions are affected by CVE-2024-31221?

It affects 1 product.

Products include Lizardbyte Sunshine.

How do I fix CVE-2024-31221?

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

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-31221 being exploited?

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

Sources

Also known as GHSA-v8gw-jw28-v55m.

Is CVE-2024-31221 in your software?

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

Check your SBOMs for free