Skip to main content

LizardByte Sunshine CVE-2025-54081

HIGH
Unquoted Search Path or Element (CWE-428)
2025-09-23 security-advisories@github.com
7.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access
  2. Exploit
    Plant malicious binary earlier in unquoted service path
  3. Execution
    Service start invokes SCM path resolution
  4. Impact
    Execute arbitrary code as SYSTEM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V13 - Configuration Path quoting
Exploitation Conditions

Two concrete, non-default preconditions must both hold: (1) Sunshine (prior to 2025.923.33222) must be installed into a filesystem path whose name contains a space, so the SunshineService binPath is both unquoted AND parseable into multiple tokens; and (2) the local attacker must already have write permission to a directory that appears earlier in the SCM's incremental search string (e.g., C:\ or an intermediate writable folder) to drop a malicious executable. Exploitation also requires a local foothold (AV:L) with at least low privileges (PR:L) and a service (re)start to trigger SCM resolution. Limiting factors: no remote vector, high attack complexity (AC:H) due to dependence on install-path layout and writable earlier elements, and default Windows ACLs on C:\ root typically prevent standard users from writing there - making custom/weakly-permissioned install locations the realistic exposure.

Impact

Despite a HIGH CVSS base score of 7.0, the real-world risk is low. The CVSS vector itself (AV:L/AC:H/PR:L) describes a LOCAL privilege-escalation requiring an existing low-privileged foothold and high attack complexity - it is not remotely exploitable. EPSS reinforces this: 0.01% (2nd percentile) is among the lowest possible exploitation-probability signals. The CVE is NOT listed in CISA KEV, so there is no evidence of active exploitation. A public advisory/POC exists (GHSA-6p7j-5v8v-w45h), but POC availability is a distinct signal from active exploitation and does not change the targeted, low-probability picture. The high C/I/A impact reflects that the SunshineService runs with SYSTEM privileges, so successful abuse yields full local compromise - but this is gated behind two non-default preconditions (install path containing a space, plus attacker write access to an earlier element of the unquoted search path). Net: a legitimately high-impact-but-low-likelihood local EoP, not an urgent patch-now priority outside of multi-user Windows hosts running Sunshine from a weakly-permissioned directory.

Exploit ScenarioDerived

On a shared Windows host where Sunshine is installed in a directory path containing a space, a local low-privileged user plants a malicious executable at an earlier, writable point in the unquoted search string (e.g., C:\Program.exe). When SunshineService next starts, the Service Control Manager executes the attacker's binary as SYSTEM, granting full local privilege escalation. Public exploit/advisory detail exists, but exploitation still requires local access and a writable earlier path element.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 11, 2026

Local privilege escalation in LizardByte Sunshine on Windows: the SunshineService service is registered with an unquoted executable path, so when Sunshine is installed under a directory whose name contains a space, the Windows Service Control Manager resolves the path incrementally and can launch a malicious binary dropped earlier in the search string, typically running as SYSTEM. Exploitation requires a local, low-privileged foothold (AV:L, PR:L, AC:H), a space-containing install path, and write access to an earlier directory such as C:\, which default ACLs usually deny; public exploit code is reported as available but EPSS is only 0.01% (2nd percentile) and there is no CISA KEV listing, so real-world risk is low despite the 7.0 base score. The issue is fixed in release 2025.923.33222 (commit f22b00d), which correctly quotes the service binary path.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:13 CVSS 6.7

Sunshine is a self-hosted game stream host for Moonlight. Rated medium severity (CVSS 6.7). Public exploit code available.

RemediationAI

Vendor-released patch: 2025.923.33222 - upgrade Sunshine to version 2025.923.33222 or later from https://github.com/LizardByte/Sunshine/releases/tag/v2025.923.33222, which contains commit https://github.com/LizardByte/Sunshine/commit/f22b00d6981f756d3531fba0028723d4a5065824 quoting the service binary path; after upgrading, re-run the installer or re-register the service so the corrected binPath is actually written to the SCM. If immediate upgrade is not possible, manually reconfigure the existing service with quotes, for example 'sc config SunshineService binPath= "\"C:\Program Files\Sunshine\sunshine.exe\" --service"' followed by a service restart - the trade-off is that an incorrect quoting string will leave the service unable to start, so validate with 'sc qc SunshineService' before restarting. Alternatively, install Sunshine into a path with no spaces (for example C:\Sunshine) and re-register the service, accepting that configuration, pairing and library paths may need to be re-established. As a defense-in-depth compensating control, audit and tighten write ACLs on every directory that precedes the install location in the SCM search string (C:\ root, Program Files, and any intermediate folders) so that standard local users cannot place executables there; this blocks the attack but does not remove the underlying misconfiguration and may conflict with software that legitimately writes to the root of the system drive. Additional detail is in the vendor advisory https://github.com/LizardByte/Sunshine/security/advisories/GHSA-6p7j-5v8v-w45h.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-428 (Unquoted Search Path or Element). Sunshine's Windows installer registers its service with the Service Control Manager through src_assets/windows/misc/service/install-service.bat using 'sc ... binPath= "%SERVICE_BIN%" start= ... DisplayName= "Sunshine Service"'. Because the expanded path is not wrapped in escaped inner quotes, a path such as C:\Program Files\Sunshine\sunshine.exe is stored by the SCM as an ambiguous token string. When the service starts, the SCM attempts candidate executables in order (C:\Program.exe, C:\Program Files\Sunshine.exe, and so on), so any attacker who can write to one of those earlier locations can have code executed in the service context, which is normally LocalSystem. The fix commit f22b00d6981f756d3531fba0028723d4a5065824 changes the argument to binPath= """%SERVICE_BIN%""", embedding the required quotes so the SCM treats the path as a single, unambiguous element. The CPE cpe:2.3:a:lizardbyte:sunshine:*:*:*:*:*:*:*:* indicates all Sunshine builds prior to the fixed release are affected; the flaw is Windows-service-installation specific rather than a defect in the streaming protocol itself.

Know when Sunshine gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local-only EoP (AV:L); AC:H because it depends on a space-containing install path and a writable earlier search element; PR:L for the required local foothold; SYSTEM execution gives C/I/A:H.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Oct 11, 2026 - 20:33 vuln.today
v2 - CVSS changed
Severity Changed
Oct 11, 2026 - 20:22 NVD
MEDIUM HIGH
CVSS changed
Oct 11, 2026 - 20:22 NVD
6.7 (MEDIUM) 7.0 (HIGH)
Patch released
Mar 28, 2026 - 19:13 nvd
Patch available
PoC Detected
Oct 08, 2025 - 17:48 vuln.today
Public exploit code
CVE Published
Sep 23, 2025 - 19:15 nvd
MEDIUM 6.7

DescriptionNVD

Sunshine is a self-hosted game stream host for Moonlight. Prior to version 2025.923.33222, the Windows service SunshineService is installed with an unquoted executable path. If Sunshine is installed in a directory whose name includes a space, the Service Control Manager (SCM) interprets the path incrementally and may execute a malicious binary placed earlier in the search string. This issue has been patched in version 2025.923.33222.

Executive ViewAI

Why It Matters

LizardByte Sunshine, a game-streaming host deployed on Windows endpoints, carries a local privilege-escalation flaw that is fixed in release 2025.923.33222. Organizational exposure is limited to hosts where a low-privileged user already has a local foothold, Sunshine is installed under a directory name containing a space, and an earlier directory in the path is writable - a condition default Windows permissions normally block. Leadership should treat this as a routine patch item rather than an emergency: publicly available exploit code exists, but there is no confirmed actively exploited (CISA KEV) activity and EPSS is effectively zero.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Until patched, manually quote the SunshineService image path in the registry, restrict write access to parent directories such as C:\ to administrators only, and migrate installations to space-free directory names.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Low
niche self-hosted game-streaming app for hobbyist/homelab use, no enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

55
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Affected Products (CPE)NVD

cpe:2.3:a:lizardbyte:sunshine:*:*:*:*:*:*:*:*
CVE-2024-31221 MEDIUM POC
5.9 Apr 08

Sunshine is a self-hosted game stream host for Moonlight. Rated medium severity (CVSS 5.9), this vulnerability is remote

CVE-2026-32253 CRITICAL
9.8 May 22

Authentication bypass in LizardByte Sunshine self-hosted game stream host (versions prior to 2026.516.143833) allows rem

CVE-2025-53095 CRITICAL
9.6 Jul 01

Sunshine is a self-hosted game stream host for Moonlight. Prior to version 2025.628.4510, the web UI of Sunshine lacks p

CVE-2024-45407 MEDIUM POC
5.3 Sep 10

Sunshine is a self-hosted game stream host for Moonlight. Rated medium severity (CVSS 5.3), this vulnerability is remote

CVE-2026-111044 HIGH
7.6 Oct 16

A previously paired Moonlight client that still holds its private key can bypass Sunshine's 'Disable' control and regain

CVE-2024-31220 HIGH
7.3 Apr 05

Sunshine is a self-hosted game stream host for Moonlight. Rated high severity (CVSS 7.3), this vulnerability is remotely

CVE-2025-53096 MEDIUM
5.4 Jul 01

Sunshine is a self-hosted game stream host for Moonlight. Prior to version 2025.628.4510, the web UI of Sunshine lacks p

CVE-2024-31226 LOW
2.9 May 16

Sunshine is a self-hosted game stream host for Moonlight. Rated low severity (CVSS 2.9).

CVE-2025-10199 HIGH
7.8 Sep 09

A local privilege escalation vulnerability exists in Sunshine for Windows (version v2025.122.141614 and likely prior ver

CVE-2025-10198 HIGH
7.8 Sep 09

Sunshine for Windows, version v2025.122.141614, contains a DLL search-order hijacking vulnerability, allowing attackers

CVE-2024-51738 HIGH
7.7 Jan 20

Sunshine is a self-hosted game stream host for Moonlight. Rated high severity (CVSS 7.7), this vulnerability is remotely

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy