CVE-2023-42800 Buffer overflow due to use of `strcpy` in `performRtspHandshake`

High 8.8 Published Updated

A malicious game streaming server can trigger a buffer overflow in the Moonlight client library, potentially causing crashes or remote code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-42800?

CVE-2023-42800 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.

Official 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 24750d4b748fefa03d09fcfd6d45056faca354e0.

Weakness: CWE-120

Which versions are affected by CVE-2023-42800?

It affects 7 products.

Products include Moonlight-Stream Moonlight, Moonlight-Stream Moonlight-Common-C, Moonlight-Stream Moonlight Embedded, Moonlight-Stream Moonlight Switch, Moonlight-Stream Moonlight Tv, Moonlight-Stream Moonlight Vita and 1 more.

How do I fix CVE-2023-42800?

No fix has been published for CVE-2023-42800 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-42800 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-42800 exists.

Sources

Also known as GHSA-4927-23jw-rq62.

Is CVE-2023-42800 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free