{"answers":{"affected":"It affects 8 products.","exploited":"There is no known exploitation of CVE-2023-42801 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-42801 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-42801 is a high-severity memory corruption vulnerability in moonlight-stream moonlight-common-c, published on 14 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-42801 and fix it if it is affected.\n\nWhat it is: CVE-2023-42801 is a high-severity memory corruption vulnerability in moonlight-stream moonlight-common-c, published on 14 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-42801 in the wild and no public exploit code.\n\nAffected product: moonlight-stream moonlight-common-c. 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-2023-42801/ (Markdown: https://insights.sbomify.com/CVE-2023-42801/index.md)","id":"CVE-2023-42801","markdown":"https://insights.sbomify.com/CVE-2023-42801/index.md","name":"CVE-2023-42801","record":{"aliases":["GHSA-f3h8-j898-5h5v"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GameStream client library","requires_auth":"none","summary":"A malicious game streaming server can crash Moonlight clients or potentially execute code via a stack buffer overflow in the shared client library.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"moonlight","vendor":"moonlight-stream"},{"product":"moonlight-common-c","vendor":"moonlight-stream"},{"product":"moonlight_embedded","vendor":"moonlight-stream"},{"product":"moonlight_qt\\/pc","vendor":"moonlight-stream"},{"product":"moonlight_switch","vendor":"moonlight-stream"},{"product":"moonlight_tv","vendor":"moonlight-stream"},{"product":"moonlight_vita","vendor":"moonlight-stream"},{"product":"moonlight_xbox","vendor":"moonlight-stream"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"Moonlight-common-c contains the core GameStream client code shared between Moonlight clients. Moonlight-common-c is vulnerable to buffer overflow starting in commit f57bd745b4cbed577ea654fad4701bea4d38b44c. A malicious game streaming server could exploit a buffer overflow vulnerability to crash a moonlight client. Achieving RCE is possible but unlikely, due to stack canaries in use by modern compiler toolchains. The published binaries for official clients Qt, Android, iOS/tvOS, and Embedded are built with stack canaries, but some unofficial clients may not use stack canaries. This vulnerability takes place after the pairing process, so it requires the client to be tricked into pairing to a malicious host. It is not possible to perform using a man-in-the-middle due to public key pinning that takes place during the pairing process. The bug was addressed in commit b2497a3918a6d79808d9fd0c04734786e70d5954.","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":"Stack buffer overflow due to `strcpy` into fixed size buffer in `extractVersionQuadFromString`","id":"CVE-2023-42801","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":0,"n_references":4,"next":{"headline":"GLPI vulnerable to unallowed PHP script execution","id":"CVE-2023-42802"},"packages":[],"prev":{"headline":"Buffer overflow due to use of `strcpy` in `performRtspHandshake`","id":"CVE-2023-42800"},"products":["moonlight-common-c"],"published":"2023-12-14","related":[{"cvss_score":8.8,"headline":"Buffer overflow due to use of `strcpy` in `parseUrlAddrFromRtspUrlString`","id":"CVE-2023-42799","kev_date_added":null,"published":"2023-12-14"},{"cvss_score":8.8,"headline":"Buffer overflow due to use of `strcpy` in `performRtspHandshake`","id":"CVE-2023-42800","kev_date_added":null,"published":"2023-12-14"},{"cvss_score":6.1,"headline":"Man-in-the-middle attack in Moonlight iOS/tvOS","id":"CVE-2020-11024","kev_date_added":null,"published":"2020-04-29"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["moonlight-stream"]},"summary":"A malicious game streaming server can crash Moonlight clients or potentially execute code via a stack buffer overflow in the shared client library.","url":"https://insights.sbomify.com/CVE-2023-42801/"}