# CVE-2023-42799: Buffer overflow due to use of `strcpy` in `parseUrlAddrFromRtspUrlString`

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-14T16:47:00.932Z
- Modified: 2026-06-17T06:24:32.183Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- moonlight-stream moonlight-common-c: >= 50c0a51b10ecc5b3415ea78c21d96d679e2288f9, < 02b7742f4d19631024bd766bd2bb76715780004e; from 2022-11-04 before 2023-10-06
- moonlight-stream moonlight: from 8.4.0 up to 8.5.0; from 10.10 up to 11.0; 0.10.22
- moonlight-stream moonlight_embedded: 2.6.0
- moonlight-stream moonlight_xbox: from 1.12.0 up to 1.14.40
- moonlight-stream moonlight_tv: from 1.5.4 up to 1.5.27
- moonlight-stream moonlight_switch: from 0.13 up to 0.13.3
- moonlight-stream moonlight_vita: from 0.9.2 up to 0.9.3

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-r8cf-45f4-vf8m> (exploit, third-party-advisory)
- <https://github.com/moonlight-stream/moonlight-common-c/commit/02b7742f4d19631024bd766bd2bb76715780004e> (patch)
- <https://github.com/moonlight-stream/moonlight-common-c/commit/50c0a51b10ecc5b3415ea78c21d96d679e2288f9> (patch)

## Sources

- CVE List: [CVE-2023-42799](https://www.cve.org/CVERecord?id=CVE-2023-42799), CVE Terms of Use, modified 2024-10-08
- NVD: [CVE-2023-42799](https://nvd.nist.gov/vuln/detail/CVE-2023-42799), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-42799 · Whole record: https://cve.day/CVE-2023-42799.json · Rebuilt by cve.day 2026-11-25T22:58:31.354Z
