{"id":"CVE-2026-40033","published":"2026-05-26T14:08:47Z","modified":"2026-11-08T14:02:45Z","title":"FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass","vendor":"FreeRDP","product":"FreeRDP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01365,"percentile":0.72496,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff","tags":["vendor-advisory"]},{"url":"https://github.com/FreeRDP/FreeRDP/pull/12713","tags":["issue-tracking","patch"]},{"url":"https://github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface-via-rectangle-validation-bypass","tags":["third-party-advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40033","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2481473","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46393","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36203","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.5},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"freerdp","affectedVersions":[{"vendor":"FreeRDP","product":"FreeRDP","versions":["< 3.26.0"]}],"fixedVersions":[{"vendor":"FreeRDP","product":"FreeRDP","versions":["3.26.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-26T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31830","exploited":false,"provenance":"source"}}