CVE-2024-31226: Sunshine's unquoted executable path could lead to hijacked execution flow

Published May 16, 2024
·
Updated

Sunshine is a self-hosted game stream host for Moonlight. Users who ran Sunshine versions 0.17.0 through 0.22.2 as a service on Windows may be impacted when terminating the service if an attacked placed a file named C:\Program.exe, C:\Program.bat, or C:\Program.cmd on the user's computer. This attack vector isn't exploitable unless the user has manually loosened ACLs on the system drive. If the user's system locale is not English, then the name of the executable will likely vary. Version 0.23.0 contains a patch for the issue. Some workarounds are available. One may identify and block potentially malicious software executed path interception by using application control tools, like Windows Defender Application Control, AppLocker, or Software Restriction Policies where appropriate. Alternatively, ensure that proper permissions and directory access control are set to deny users the ability to write files to the top-level directory C:. Require that all executables be placed in write-protected directories.

Affected Software

2 affected components
Sunshine Sunshine>=0.17.0<0.22.2
LizardByte Sunshine>=0.17.0<0.23.0

Event History

May 16, 2024
CVE Published
via MITRE·06:12 PM
Data Sourced
via MITRE·06:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-31226?

CVE-2024-31226 is considered a high severity vulnerability due to its potential impact on system integrity.

2

How do I fix CVE-2024-31226?

To mitigate CVE-2024-31226, upgrade Sunshine to version 0.22.3 or later and ensure that no unauthorized files are placed in the C:\ directory.

3

Who is affected by CVE-2024-31226?

CVE-2024-31226 affects users running Sunshine versions 0.17.0 through 0.22.2 on Windows when the service is terminated.

4

What type of attack is associated with CVE-2024-31226?

CVE-2024-31226 allows an attacker to execute arbitrary commands by placing malicious files with specific names in the C:\ directory.

5

Is there a workaround for CVE-2024-31226?

A possible workaround for CVE-2024-31226 is to monitor and restrict file placements in the C:\ directory before applying the update.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203