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.
References
| Link | Resource |
|---|---|
| https://github.com/FreeRDP/FreeRDP/commit/23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 | Patch |
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff | Exploit Mitigation Vendor Advisory |
| https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface-via-rectangle-validation-bypass | Third Party Advisory |
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff | Exploit Mitigation Vendor Advisory |
Configurations
History
27 May 2026, 14:48
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:* | |
| References | () https://github.com/FreeRDP/FreeRDP/commit/23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 - Patch | |
| References | () https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff - Exploit, Mitigation, Vendor Advisory | |
| References | () https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface-via-rectangle-validation-bypass - Third Party Advisory | |
| First Time |
Freerdp freerdp
Freerdp |
26 May 2026, 16:16
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff - |
26 May 2026, 15:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-26 15:16
Updated : 2026-05-27 14:48
NVD link : CVE-2026-40033
Mitre link : CVE-2026-40033
CVE.ORG link : CVE-2026-40033
JSON object : View
Products Affected
freerdp
- freerdp
CWE
CWE-122
Heap-based Buffer Overflow
