CVE-2024-31226
published medium CVSS 3.1 · 4.9Sunshine's unquoted executable path could lead to hijacked execution flow
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| LizardByte | Sunshine | >= 0.17.0, < 0.23.0 (affected) | GitHub_M · cna |
| lizardbyte | sunshine | 0.17 to < 0.23 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-428 CWE-428: Unquoted Search Path or Element
References
3Provider assertions
3GitHub_M · cna
Sunshine's unquoted executable path could lead to hijacked execution flow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 17521d4228882599b7b33e627cbd9534ae29d8885998e0662014b2431514131c
- Ingested
- 23 Sep 2026, 08:22:25 UTC
- Source record
- Official CVE record