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

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-16T18:12:57.081Z
- Modified: 2026-06-17T07:28:01.050Z
- Weaknesses: CWE-428
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- LizardByte Sunshine: >= 0.17.0, < 0.23.0; from 0.17 before 0.23; from 0.17.0 before 0.23.0

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 2.9 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2024-31226](https://www.cve.org/CVERecord?id=CVE-2024-31226), CVE Terms of Use, modified 2024-08-15
- NVD: [CVE-2024-31226](https://nvd.nist.gov/vuln/detail/CVE-2024-31226), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31226 · Whole record: https://cve.day/CVE-2024-31226.json · Rebuilt by cve.day 2026-11-25T22:58:40.458Z
