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

High 8.8 Published Updated

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

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-42799?

CVE-2023-42799 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 02b7742f4d19631024bd766bd2bb76715780004e.

Weakness: CWE-120

Which versions are affected by CVE-2023-42799?

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-42799?

No fix has been published for CVE-2023-42799 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-42799 being exploited?

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

Sources

Also known as GHSA-r8cf-45f4-vf8m.

Is CVE-2023-42799 in your software?

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

Check your SBOMs for free