Vulnerability Details : CVE-2023-42801
Potential exploit
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.
Vulnerability category: Overflow
Products affected by CVE-2023-42801
- cpe:2.3:a:moonlight-stream:moonlight:*:*:*:*:*:chrome:*:*
- cpe:2.3:a:moonlight-stream:moonlight:*:*:*:*:*:iphone_os:*:*
- cpe:2.3:a:moonlight-stream:moonlight:*:*:*:*:*:android:*:*
- cpe:2.3:a:moonlight-stream:moonlight:*:*:*:*:*:tvos:*:*
- Moonlight-stream » Moonlight-common-cVersions from including (>=) 2016-10-05 and before (<) 2023-10-06cpe:2.3:a:moonlight-stream:moonlight-common-c:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_embedded:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_xbox:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_tv:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_switch:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_vita:*:*:*:*:*:*:*:*
- cpe:2.3:a:moonlight-stream:moonlight_qt\/pc:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-42801
0.07%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 33 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-42801
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
2.8
|
4.7
|
NIST | |
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
2.8
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2023-42801
-
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-42801
-
https://github.com/moonlight-stream/moonlight-common-c/commit/f57bd745b4cbed577ea654fad4701bea4d38b44c
API update to provide enough information to support GFE 3.0.7 · moonlight-stream/moonlight-common-c@f57bd74 · GitHubPatch
-
https://github.com/moonlight-stream/moonlight-common-c/blob/c1744de06938b5a5c8897a705be1bc6508dc7580/src/Misc.c#L82-L88
moonlight-common-c/src/Misc.c at c1744de06938b5a5c8897a705be1bc6508dc7580 · moonlight-stream/moonlight-common-c · GitHubExploit
-
https://github.com/moonlight-stream/moonlight-common-c/commit/b2497a3918a6d79808d9fd0c04734786e70d5954
Rewrite extractVersionQuadFromString() to avoid copying the input string · moonlight-stream/moonlight-common-c@b2497a3 · GitHubPatch
-
https://github.com/moonlight-stream/moonlight-common-c/security/advisories/GHSA-f3h8-j898-5h5v
Stack buffer overflow due to `strcpy` into fixed size buffer in `extractVersionQuadFromString` · Advisory · moonlight-stream/moonlight-common-c · GitHubExploit;Third Party Advisory
Jump to