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 package | Versions | Reported by |
|---|---|---|
| FreeRDP FreeRDP | before 3.26.0 Not affected: 3.26.0 | CVE List, NVD |
| freerdp | Not specified Not affected: from 2:3.10.3-12.el10_2.6 before * | CVE List |
All scores
| VulnCheck | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40033 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-40033 changed 2026-07-27 | Public domain |