Cyber Resilience

CVE-2024-31221

Auth Bypass in Lizardbyte Sunshine 0.10.0 – 0.23.0

Public PoCAuth Bypass
Published
08 April 2024
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 5.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
EPSS Score 0.0051 41th percentile
Risk Priority 46 floored blend · peak EPSS

Summary

CVE-2024-31221 is a medium-severity Session Fixation (CWE-384) vulnerability in Lizardbyte Sunshine. Its CVSS base score is 5.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Steal Web Session Cookie (T1539); ranked at the 41th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SC-23 (Session Authenticity) and AC-12 (Session Termination) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Sunshine is a self-hosted game stream host for Moonlight. Starting in version 0.10.0 and prior to version 0.23.0, after unpairing all devices in the web UI interface and then pairing only one device, all of the previously devices will be…

more

temporarily paired. Version 0.23.0 contains a patch for the issue. As a workaround, restarting Sunshine after unpairing all devices prevents the vulnerability.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1539 Steal Web Session Cookie Credential Access
An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials.
T1550.004 Web Session Cookie Lateral Movement
Adversaries can use stolen session cookies to authenticate to web applications and services.
T1606 Forge Web Credentials Credential Access
Adversaries may forge credential materials that can be used to gain access to web applications or Internet services.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-53095Same product: Lizardbyte Sunshine
CVE-2024-51738Same product: Lizardbyte Sunshine
CVE-2024-31220Same product: Lizardbyte Sunshine
CVE-2026-32253Same product: Lizardbyte Sunshine
CVE-2025-53096Same product: Lizardbyte Sunshine
CVE-2024-31226Same product: Lizardbyte Sunshine
CVE-2024-45407Same product: Lizardbyte Sunshine
CVE-2025-68139Shared CWE-384
CVE-2024-23590Shared CWE-384
CVE-2025-36115Shared CWE-384

Affected Assets

lizardbyte
sunshine
0.10.0 — 0.23.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V4.4.4
  • V7.6.2

Mitigating Controls (NIST 800-53 r5) AI

Requires protection of session authenticity, which directly stops an attacker from using a stolen or fixed session identifier after authentication.

Limits the lifetime of any session (fixed or not), thereby reducing the window during which a stolen identifier remains usable.

Enforces that only properly authorized (i.e., freshly authenticated) sessions can access resources, making a pre-existing fixed session ID unusable.

Forces re-authentication under defined conditions, which should result in issuance of a fresh session identifier and invalidation of any prior one.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-03 mostly match
prevents

Proper authentication processes must invalidate prior session identifiers to prevent fixation attacks.

PR.AA-01 partial match
prevents

Managing identities and credentials includes handling session identifiers as temporary credentials that must be invalidated on re-authentication.

PR.AA-04 partial match
prevents

Protecting and verifying identity assertions encompasses secure handling and regeneration of session tokens.

PR.PS-01 partial match
prevents

Configuration baselines can enforce session regeneration and timeout settings that block fixation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect session-fixation issues, yet the weakness absence does not replace comprehensive testing.

degrades

Access-control policy can mandate session invalidation on re-authentication, but does not prescribe the technical mechanism.

degrades

Identity-management procedures can require new session tokens after login, yet the control is broader than session handling.

degrades

Authentication-information rules can include session-token lifecycle requirements, but the control focuses on credential management.

prevents

Secure-SDLC requirement can embed session-fixation checks, but eliminating the weakness does not satisfy the full SDLC control.

prevents

Application-security requirements can specify session handling, yet the weakness fix alone does not meet the broader requirement.

References