CVE-2026-40033
JSON

8.6high

FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass

Severity
8.6high CVSS:4.0 by VulnCheck
Exploit likelihood
1.06% (higher than 64% of CVEs)
Published
Last changed
Assigned by
VulnCheck

Description

FreeRDP before 3.26.0 contains a heap-buffer-overflow vulnerability in gdi_CacheToSurface that allows remote attackers to write out-of-bounds heap memory. The vulnerability occurs because rectangle validation clamps coordinates to UINT16_MAX but performs copy operations using unclamped cache entry dimensions, enabling malicious RDP servers to trigger large out-of-bounds writes and potentially achieve remote code execution or client crash.

Affected

Product or packageVersionsReported by
FreeRDP FreeRDPbefore 3.26.0
Not affected: 3.26.0
CVE List, NVD
freerdpNot specified
Not affected: from 2:3.10.3-12.el10_2.6 before *
CVE List

All scores

VulnCheck8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-122CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

FreeRDP before 3.26.0 contains a heap-buffer-overflow vulnerability in gdi_CacheToSurface that allows remote attackers to write out-of-bounds heap memory. The vulnerability occurs because rectangle validation clamps coordinates to UINT16_MAX but performs copy operations using unclamped cache entry dimensions, enabling malicious RDP servers to trigger large out-of-bounds writes and potentially achieve remote code execution or client crash.

NVD (es)

FreeRDP anterior a la versión 3.26.0 contiene una vulnerabilidad de desbordamiento de búfer de pila en gdi_CacheToSurface que permite a atacantes remotos escribir memoria de pila fuera de los límites. La vulnerabilidad ocurre porque la validación de rectángulos limita las coordenadas a UINT16_MAX pero realiza operaciones de copia utilizando dimensiones de entrada de caché no limitadas, lo que permite a servidores RDP maliciosos desencadenar escrituras grandes fuera de los límites y potencialmente lograr ejecución remota de código o un fallo del cliente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40033 changed 2026-11-08CVE Terms of Use
NVDCVE-2026-40033 changed 2026-07-27Public domain