Buffer overflow in Freerdp
CVE-2026-40033
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.014, 72.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Freerdp — versions 0, 3.26.0
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-p6r2-4hgm-m6ff) (vendor-advisory, Exploit, Mitigation, Vendor Advisory)
- github.com/FreeRDP/FreeRDP/commit/23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 (Patch, patch)
- www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface… (Third Party Advisory, third-party-advisory)
- github.com/FreeRDP/FreeRDP/pull/12713 (issue-tracking, patch)
- github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae (patch)
- access.redhat.com/security/cve/CVE-2026-40033
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json
- access.redhat.com/errata/RHSA-2026:36203
- access.redhat.com/errata/RHSA-2026:46393