Skip to content
Heist/ feed
Back to feed
High

Sunshine vulnerable to remote unauthenticated arbitrary file read

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-31220
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:31 UTC · Revision 1

Source evidence

Sunshine vulnerable to remote unauthenticated arbitrary file read

core-osv · Original source

Published 5 Apr 2024, 14:59 UTC

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.

osv:CVE-2024-31220
Complete source record
{
  "id": "e8d2e922484405ced5ddab5a578d2331778e7cbfa02d8da72480bcb02369abfd",
  "url": "https://osv.dev/vulnerability/CVE-2024-31220",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Sunshine vulnerable to remote unauthenticated arbitrary file read",
    "summary": "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.",
    "evidence": "osv:CVE-2024-31220",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-31220",
      "aliases": [
        "CVE-2024-31220",
        "GHSA-6rg7-7m3w-w5wc"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lizardbyte/sunshine",
              "type": "GIT",
              "events": [
                {
                  "introduced": "08d623ce44f77061a26de9dc50a2aef60f1b6158"
                },
                {
                  "fixed": "b2c5da2cfca2ff503114c4ff51545c922098c4f3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.16.0"
                      },
                      {
                        "fixed": "0.18.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b2c5da2cfca2ff503114c4ff51545c922098c4f3"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.18.0"
                  },
                  {
                    "cpe": "cpe:2.3:a:lizardbyte:sunshine:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.16.0"
                      },
                      {
                        "fixed": "0.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.17.0",
            "v0.16.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31220.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.602858653Z",
      "provider": "osv",
      "references": [
        "https://github.com/LizardByte/Sunshine/releases/tag/v0.18.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31220.json",
        "https://github.com/LizardByte/Sunshine/security/advisories/GHSA-6rg7-7m3w-w5wc",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-31220"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31220.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-31220",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504701,
  "published_at": "2024-04-05T14:59:52.662+00:00"
}