{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-31220 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-31220 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-31220 is a high-severity path traversal vulnerability in LizardByte Sunshine, published on 5 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-31220 and fix it if it is affected.\n\nWhat it is: CVE-2024-31220 is a high-severity path traversal vulnerability in LizardByte Sunshine, published on 5 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-31220 in the wild and no public exploit code.\n\nAffected product: LizardByte Sunshine. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-31220/ (Markdown: https://insights.sbomify.com/CVE-2024-31220/index.md)","id":"CVE-2024-31220","markdown":"https://insights.sbomify.com/CVE-2024-31220/index.md","name":"CVE-2024-31220","record":{"aliases":["GHSA-6rg7-7m3w-w5wc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Game streaming server","requires_auth":"none","summary":"Remote attackers can read arbitrary files without authentication if the Sunshine configuration web interface is exposed to the network.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sunshine","vendor":"lizardbyte"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Sunshine vulnerable to remote unauthenticated arbitrary file read","id":"CVE-2024-31220","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"Clients removed during unpairing process may regain access if Sunshine was not restarted","id":"CVE-2024-31221"},"packages":[],"prev":{"headline":"Discourse-reactions' reaction data and public topic whisper content exposed on reactions given user activity page","id":"CVE-2024-31219"},"products":["Sunshine"],"published":"2024-04-05","related":[{"cvss_score":9.8,"headline":"Sunshine: Authentication bypass via improper client certificate validation","id":"CVE-2026-32253","kev_date_added":null,"published":"2026-05-22"},{"cvss_score":9.7,"headline":"Sunshine application-wide CSRF in the UI leads to command injection as Administrator","id":"CVE-2025-53095","kev_date_added":null,"published":"2025-07-01"},{"cvss_score":7.8,"headline":"LizardBytes Sunshine for Windows contains a DLL search-order hijacking vulnerability","id":"CVE-2025-10198","kev_date_added":null,"published":"2025-09-09"},{"cvss_score":7.8,"headline":"A local privilege escalation vulnerability exists in LizardBytes' Sunshine for Windows","id":"CVE-2025-10199","kev_date_added":null,"published":"2025-09-09"},{"cvss_score":7.7,"headline":"Sunshine improperly enforces pairing protocol request order","id":"CVE-2024-51738","kev_date_added":null,"published":"2025-01-20"},{"cvss_score":6.7,"headline":"SunshineService Has Unquoted Service Path That Allows Local SYSTEM Code Execution","id":"CVE-2025-54081","kev_date_added":null,"published":"2025-09-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["LizardByte"]},"summary":"Remote attackers can read arbitrary files without authentication if the Sunshine configuration web interface is exposed to the network.","url":"https://insights.sbomify.com/CVE-2024-31220/"}