# CVE-2023-42801: Stack buffer overflow due to \`strcpy\` into fixed size buffer in \`extractVersionQuadFromString\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.79% (percentile 53, 2026-11-26)
- **CWE:** CWE-120
- **Published:** 2023-12-14T17:02:04.647Z
- **Modified:** 2026-06-17T06:24:32.520Z

## Who should check

- Anyone running moonlight-stream moonlight-common-c \>= f57bd745b4cbed577ea654fad4701bea4d38b44c, \< b2497a3918a6d79808d9fd0c04734786e70d5954

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

## Affected and fixed versions

- moonlight-stream moonlight-common-c: \>= f57bd745b4cbed577ea654fad4701bea4d38b44c, \< b2497a3918a6d79808d9fd0c04734786e70d5954 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-42801. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-42801.md
Affected: moonlight-stream moonlight-common-c >= f57bd745b4cbed577ea654fad4701bea4d38b44c, < b2497a3918a6d79808d9fd0c04734786e70d5954
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for moonlight-stream moonlight-common-c: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-42801 being exploited?

There is no confirmed exploitation: CVE-2023-42801 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-42801?

High: CVSS 7.6 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-42801?

moonlight-stream moonlight-common-c \>= f57bd745b4cbed577ea654fad4701bea4d38b44c, \< b2497a3918a6d79808d9fd0c04734786e70d5954.

### Is there a fix for CVE-2023-42801?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-42801?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-f3h8-j898-5h5v>
- patch: <https://github.com/moonlight-stream/moonlight-common-c/commit/b2497a3918a6d79808d9fd0c04734786e70d5954>
- patch: <https://github.com/moonlight-stream/moonlight-common-c/commit/f57bd745b4cbed577ea654fad4701bea4d38b44c>
- exploit: <https://github.com/moonlight-stream/moonlight-common-c/blob/c1744de06938b5a5c8897a705be1bc6508dc7580/src/Misc.c#L82-L88>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-42801>

HTML: <https://flawdb.com/CVE-2023-42801> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-42801>
