CVE-2023-40574 Out-Of-Bounds Write in FreeRDP
An out-of-bounds write in FreeRDP allows attackers to potentially execute arbitrary code or cause a denial of service via crafted RDP data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-40574?
CVE-2023-40574 is a medium-severity memory corruption vulnerability in Freerdp Freerdp, published on 31 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Out-Of-Bounds Write in the `writePixelBGRX` function. This issue is likely down to incorrect calculations of the `nHeight` and `srcStep` variables. This issue has been addressed in version 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.
Weakness: CWE-787
Which versions are affected by CVE-2023-40574?
It affects 1 product.
Products include Freerdp Freerdp.
How do I fix CVE-2023-40574?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-40574 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-40574 exists.
Other vulnerabilities in Freerdp Freerdp
- CVE-2021-37594 Other in n/a
- CVE-2021-37595 Other in n/a
- CVE-2026-67305 FreeRDP Windows Client before 3.29.0 Heap Buffer Overflow via Cliprdr
- CVE-2026-66402 FreeRDP before 3.29.0 TLS Certificate Identity Validation Bypass
- CVE-2026-67289 FreeRDP before 3.29.0 HTTP Proxy Request Injection via Redirection
Sources
Also known as GHSA-422p-gj6x-93cw.