{"id":"CVE-2023-42799","aliases":["CVE-2023-42799"],"related":[],"kind":"vulnerability","state":"published","title":"Buffer overflow due to use of `strcpy` in `parseUrlAddrFromRtspUrlString`","summary":"Moonlight-common-c contains the core GameStream client code shared between Moonlight clients. Moonlight-common-c is vulnerable to buffer overflow starting in commit 50c0a51b10ecc5b3415ea78c21d96d679e2288f9 due to unmitigated usage of unsafe C functions and improper bounds checking. A malicious game streaming server could exploit a buffer overflow vulnerability to crash a moonlight client, or achieve remote code execution (RCE) on the client (with insufficient exploit mitigations or if mitigations can be bypassed). The bug was addressed in commit 02b7742f4d19631024bd766bd2bb76715780004e.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Moonlight-common-c contains the core GameStream client code shared between Moonlight clients. Moonlight-common-c is vulnerable to buffer overflow starting in commit 50c0a51b10ecc5b3415ea78c21d96d679e2288f9 due to unmitigated usage of unsafe C functions and improper bounds checking. A malicious game streaming server could exploit a buffer overflow vulnerability to crash a moonlight client, or achieve remote code execution (RCE) on the client (with insufficient exploit mitigations or if mitigations can be bypassed). The bug was addressed in commit 02b7742f4d19631024bd766bd2bb76715780004e.","source":"cvelist"},{"lang":"es","text":"Moonlight-common-c contiene el código principal del cliente GameStream compartido entre los clientes Moonlight. Moonlight-common-c es vulnerable al desbordamiento del búfer a partir de el commit 50c0a51b10ecc5b3415ea78c21d96d679e2288f9 debido al uso absoluto de funciones C inseguras y a una verificación de los límites inadecuada. Un servidor de transmisión de juegos malicioso podría aprovechar una vulnerabilidad de desbordamiento del búfer para bloquear un cliente de luz nocturna o lograr la ejecución remota de código (RCE) en el cliente (con mitigaciones de explotación insuficientes o si se pueden evitar las mitigaciones). El error se solucionó en el commit 02b7742f4d19631024bd766bd2bb76715780004e.","source":"nvd"}],"published":"2023-12-14T16:47:00.932Z","modified":"2026-06-17T06:24:32.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"version":">= 50c0a51b10ecc5b3415ea78c21d96d679e2288f9, < 02b7742f4d19631024bd766bd2bb76715780004e","status":"affected"}],"vendor":"moonlight-stream","product":"moonlight-common-c","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2022-11-04","fixed":"2023-10-06"}],"vendor":"moonlight-stream","product":"moonlight-common-c","cpe":"cpe:2.3:a:moonlight-stream:moonlight-common-c:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.4.0","lastAffected":"8.5.0"},{"status":"affected","introduced":"8.4.0","lastAffected":"8.5.0"},{"status":"affected","introduced":"10.10","lastAffected":"11.0"},{"status":"affected","version":"0.10.22"}],"vendor":"moonlight-stream","product":"moonlight","cpe":"cpe:2.3:a:moonlight-stream:moonlight:*:*:*:*:*:iphone_os:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"2.6.0"}],"vendor":"moonlight-stream","product":"moonlight_embedded","cpe":"cpe:2.3:a:moonlight-stream:moonlight_embedded:2.6.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.12.0","lastAffected":"1.14.40"}],"vendor":"moonlight-stream","product":"moonlight_xbox","cpe":"cpe:2.3:a:moonlight-stream:moonlight_xbox:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.5.4","lastAffected":"1.5.27"}],"vendor":"moonlight-stream","product":"moonlight_tv","cpe":"cpe:2.3:a:moonlight-stream:moonlight_tv:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.13","lastAffected":"0.13.3"}],"vendor":"moonlight-stream","product":"moonlight_switch","cpe":"cpe:2.3:a:moonlight-stream:moonlight_switch:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"0.9.2","lastAffected":"0.9.3"}],"vendor":"moonlight-stream","product":"moonlight_vita","cpe":"cpe:2.3:a:moonlight-stream:moonlight_vita:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-r8cf-45f4-vf8m","tags":["exploit","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moonlight-stream/moonlight-common-c/commit/02b7742f4d19631024bd766bd2bb76715780004e","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moonlight-stream/moonlight-common-c/commit/50c0a51b10ecc5b3415ea78c21d96d679e2288f9","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-02-07T16:57:28.464Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-42799","url":"https://www.cve.org/CVERecord?id=CVE-2023-42799","licence":"CVE Terms of Use","modified":"2024-10-08T14:20:49.115Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-42799","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-42799","licence":"Public domain","modified":"2026-06-17T06:24:32.183Z"}],"updatedAt":"2026-11-25T22:58:31.354Z","epss":{"score":0.01881,"percentile":0.80068,"date":"2026-12-01T12:00:22.000Z"}}