CVE-2026-40033: FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass
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.
Security readout for executives and security teams
Plain-English summary
FreeRDP clients before 3.26.0 can be attacked by a malicious RDP server. If a user connects to that server, crafted graphics data can corrupt heap memory, causing a crash or possibly remote code execution on the client machine.
Executive priority
Treat as high priority for teams using FreeRDP. Patch client systems promptly, with greatest urgency for administrators and users who connect to third-party or internet-hosted RDP services.
Technical view
The flaw is a heap out-of-bounds write in gdi_CacheToSurface. Rectangle validation clamps coordinates to UINT16_MAX, but later copy operations use unclamped cache-entry dimensions. This mismatch lets a malicious RDP server drive oversized heap writes in vulnerable FreeRDP clients.
Likely exposure
Exposure is most likely on workstations, jump hosts, admin systems, and applications using FreeRDP libraries or clients before 3.26.0, especially where users connect to external or untrusted RDP servers.
Exploitation context
Sources describe remote attack by a malicious RDP server with user interaction required. KEV is false, and the provided sources do not establish active exploitation in the wild.
Researcher notes
The source bundle supports memory corruption with possible code execution or crash, but does not prove exploitation. Validation should focus on FreeRDP versioning, downstream packaged fixes, and whether client workflows create malicious-server exposure.
Mitigation direction
Upgrade FreeRDP to 3.26.0 or later where available.
Apply vendor distribution updates, including relevant Red Hat errata where applicable.
Limit FreeRDP connections to trusted RDP servers until patched.
Monitor FreeRDP and OS vendor advisories for package-specific guidance.
Validation and detection
Inventory systems and applications using FreeRDP clients or libraries.
Confirm installed FreeRDP versions are 3.26.0 or later.
Check Linux distribution security advisories for fixed package builds.
Review remote-access workflows for connections to untrusted RDP servers.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-122: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
3CVSS vectors
5Timeline events
2ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
3 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-122 · source CWE mapping
Heap-based Buffer Overflow
Heap-based Buffer Overflow represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.