{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-31226 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2024-31226 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-31226 is a medium-severity path traversal vulnerability in LizardByte Sunshine, published on 16 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-31226 and fix it if it is affected.\n\nWhat it is: CVE-2024-31226 is a medium-severity path traversal vulnerability in LizardByte Sunshine, published on 16 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-31226 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-31226/ (Markdown: https://insights.sbomify.com/CVE-2024-31226/index.md)","id":"CVE-2024-31226","markdown":"https://insights.sbomify.com/CVE-2024-31226/index.md","name":"CVE-2024-31226","record":{"aliases":[],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Game streaming host","requires_auth":"high_privilege","summary":"Attackers can hijack execution flow by placing malicious files in the root directory if system ACLs are loosened, allowing code execution.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sunshine","vendor":"lizardbyte"}],"cvss":{"score":4.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:P/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-428","name":"Unquoted Search Path or Element"}],"description":"Sunshine is a self-hosted game stream host for Moonlight. Users who ran Sunshine versions 0.17.0 through 0.22.2 as a service on Windows may be impacted when terminating the service if an attacked placed a file named `C:\\Program.exe`, `C:\\Program.bat`, or `C:\\Program.cmd` on the user's computer. This attack vector isn't exploitable unless the user has manually loosened ACLs on the system drive. If the user's system locale is not English, then the name of the executable will likely vary. Version 0.23.0 contains a patch for the issue. Some workarounds are available. One may identify and block potentially malicious software executed path interception by using application control tools, like Windows Defender Application Control, AppLocker, or Software Restriction Policies where appropriate. Alternatively, ensure that proper permissions and directory access control are set to deny users the ability to write files to the top-level directory `C:`. Require that all executables be placed in write-protected directories.","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's unquoted executable path could lead to hijacked execution flow","id":"CVE-2024-31226","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Denial-of-service due to malformed ACL selectors in Redis","id":"CVE-2024-31227"},"packages":[],"prev":{"headline":"Lack of size check and buffer overflow in RIOT","id":"CVE-2024-31225"},"products":["Sunshine"],"published":"2024-05-16","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":7.3,"headline":"Sunshine vulnerable to remote unauthenticated arbitrary file read","id":"CVE-2024-31220","kev_date_added":null,"published":"2024-04-05"},{"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":"total"},"state":"PUBLISHED","updated":"2024-08-15","vendors":["LizardByte"]},"summary":"Attackers can hijack execution flow by placing malicious files in the root directory if system ACLs are loosened, allowing code execution.","url":"https://insights.sbomify.com/CVE-2024-31226/"}