Heap Buffer Overflow in FreeRDP for Remote Desktop Protocol
CVE-2026-31806
9.3CRITICAL
What is CVE-2026-31806?
FreeRDP, an open-source implementation of the Remote Desktop Protocol, has a vulnerability affecting versions prior to 3.24.0. The gdi_surface_bits() function fails to validate the bmp.width and bmp.height values sent by malicious RDP servers against the expected dimensions of the desktop. This oversight can lead to a heap buffer overflow during bitmap decoding and memory operations due to improper bounds checking. An attacker can exploit this vulnerability by crafting specific pixel data, potentially allowing them to overwrite adjacent memory. The issue is resolved in version 3.24.0.
Affected Version(s)
FreeRDP < 3.24.0
