CVEvulnerability
CVE-2026-40033
8.7 HIGH
Official page ↗
- Status
- Modified
- Published
- 2026-05-26
- Last modified
- 2026-07-27
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 8.7 HIGH — 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS 3.1 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-122, CWE-787
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 configurations
• freerdp freerdp (< 3.26.0)
Related
References
- https://github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae github.com
- https://github.com/FreeRDP/FreeRDP/pull/12713 github.com
- 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://access.redhat.com/errata/RHSA-2026:36203 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:46393 access.redhat.com
- https://access.redhat.com/security/cve/CVE-2026-40033 access.redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2481473 bugzilla.redhat.com
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff Exploit, Mitigation, Vendor Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json security.access.redhat.com