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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.9
- **CVSS:** 4.9 (v3.1, CNA) `CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-428
- **Published:** 2024-05-16T18:12:57.081Z
- **Modified:** 2026-06-17T07:28:01.050Z

## Who should check

- Anyone running LizardByte Sunshine \>= 0.17.0, \< 0.23.0

## 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.

## Affected and fixed versions

- LizardByte Sunshine: \>= 0.17.0, \< 0.23.0 (cvelist)

## Mitigation

- Upgrade Sunshine to 0.23.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-31226. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-31226.md
Affected: LizardByte Sunshine >= 0.17.0, < 0.23.0
Fixed in: LizardByte Sunshine 0.23.0

Steps:
1. Search this machine and project for LizardByte Sunshine: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-31226 being exploited?

There is no confirmed exploitation: CVE-2024-31226 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-31226?

Medium: CVSS 4.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-31226?

LizardByte Sunshine \>= 0.17.0, \< 0.23.0.

### Is there a fix for CVE-2024-31226?

Yes. Fixed in LizardByte Sunshine 0.23.0. Upgrade Sunshine to 0.23.0 or later.

### How do I check if I'm affected by CVE-2024-31226?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/LizardByte/Sunshine/security/advisories/GHSA-r3rw-mx4q-7vfp>
- patch: <https://github.com/LizardByte/Sunshine/pull/2379>
- patch: <https://github.com/LizardByte/Sunshine/commit/93e622342c4f3e9b34f5f265039b6775b8e33a7a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-31226>

HTML: <https://flawdb.com/CVE-2024-31226> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-31226>
