CVE-2023-40574 Out-Of-Bounds Write in FreeRDP

Medium 6.5 Published Updated

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.

All Freerdp Freerdp vulnerabilities

Sources

Also known as GHSA-422p-gj6x-93cw.

Is CVE-2023-40574 in your software?

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

Check your SBOMs for free