CRITICAL🇵🇱 Wersja polska

CVE-2026-31806

CVSS 9.3v4.0pub. 2026-03-13upd. 2026-06-30

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, the gdi_surface_bits() function processes SURFACE_BITS_COMMAND messages sent by the RDP server. When the command is handled using NSCodec, the bmp.width and bmp.height values provided by the server are not properly validated against the actual desktop dimensions. A malicious RDP server can supply crafted bmp.width and bmp.height values that exceed the expected surface size. Because these values are used during bitmap decoding and memory operations without proper bounds checking, this can lead to a heap buffer overflow. Since the attacker can also control the associated pixel data transmitted by the server, the overflow may be exploitable to overwrite adjacent heap memory. This vulnerability is fixed in 3.24.0.

🤖 AI Analysis
How it works

The gdi_surface_bits() function handles SURFACE_BITS_COMMAND messages using the NSCodec encoder. The bmp.width and bmp.height values supplied by the RDP server are not properly validated against the actual desktop dimensions. A malicious server can pass specially crafted width and height values exceeding the expected surface size, which are then used during bitmap decoding and memory operations without proper bounds checking. Since the attacker also controls the transmitted pixel data, the overflow can enable overwriting adjacent heap memory areas.

Impact

An attacker controlling a malicious RDP server can cause a heap buffer overflow, which can result in arbitrary code execution (RCE) on the client machine establishing the connection or destabilization of the application.

Mitigation & patch

FreeRDP should be updated to version 3.24.0 or later, in which the vulnerability has been fixed. Patch available in the project repository (commit 83d9aedea278a74af3e490ff5eeb889c016dbb2b). Until an update is applied, it is recommended to restrict RDP connections only to trusted servers.

Who is affected

FreeRDP in all versions before 3.24.0

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Freerdp

    APP
    Freerdp
    < 3.24.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Memory
CWE
References

Related vulnerabilities

CVE-2026-64620CRITICAL9.3PL ✓same product

FreeRDP: heap-based buffer overflow w crypto_rsa_common() przed uwierzytelnieniem

CVE-2026-64621CRITICAL9.3PL ✓same product

Double-free w FreeRDP przy parsowaniu pola selectedmonitors pliku .rdp

CVE-2024-32658CRITICAL9.8PL ✓same product

FreeRDP: out-of-bounds read w klientach przed wersją 3.5.1

CVE-2024-32659CRITICAL9.8PL ✓same product

FreeRDP: out-of-bounds read przy zerowych wymiarach obrazu (RDP)

CVE-2024-32039CRITICAL9.8PL ✓same product

FreeRDP: integer overflow i out-of-bounds write w obsłudze GFX