LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A malicious RDP server can exploit vulnerable FreeRDP clients when a user connects. The flaw can corrupt memory, potentially crashing the client or allowing attacker-controlled code execution with the client process’s privileges. FreeRDP versions before 3.26.0 are affected.

Executive priority

Treat as a high-priority client-side update, especially for administrators, support teams, and users connecting to third-party RDP servers. Patch promptly because successful exploitation could compromise confidentiality, integrity, and availability, although active exploitation is not established by the supplied evidence.

Technical view

gdi_CacheToSurface clamps rectangle coordinates to UINT16_MAX during validation but performs copying with unclamped cache-entry dimensions. This mismatch permits large out-of-bounds heap writes. The CVSS 3.1 score is 8.8: exploitation is network-accessible, low complexity, requires no privileges, and requires user interaction.

Likely exposure

Exposure centers on systems running FreeRDP before 3.26.0 that connect to attacker-controlled or compromised RDP servers. Risk depends on whether users or automated workflows initiate such connections. The supplied sources do not identify additional affected products.

Exploitation context

The attack originates from a malicious RDP server and is triggered when a vulnerable client connects. Potential outcomes include client crashes and remote code execution. CISA KEV status is false, and the supplied evidence does not establish active exploitation or public weaponization.

Researcher notes

The upstream patch is commit d7508ebcd82842a691ae4941e5104d14240a89ae, associated with pull request 12713. Validation should focus on consistency between rectangle validation and copy dimensions. The supplied bundle does not provide evidence of observed attacks, reliable exploitation, or impact beyond FreeRDP.

Mitigation direction

  • Upgrade FreeRDP to version 3.26.0 or later.
  • Apply applicable operating-system vendor updates or Red Hat errata.
  • Prioritize clients permitted to connect to untrusted RDP servers.
  • Restrict RDP client connections to approved servers until updates are complete.

Validation and detection

  • Inventory installed FreeRDP versions and identify releases earlier than 3.26.0.
  • Confirm distribution packages include the vendor patch or applicable security erratum.
  • Verify updated clients report FreeRDP 3.26.0 or a patched vendor build.
  • Review whether vulnerable clients can connect to untrusted or externally controlled RDP servers.
Prepared
Confidence
high
Sources
6

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.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-787: 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.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-40033 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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
10Source 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.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H2.85.9VulnCheck
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H2.85.9redhat-SADP
8.6CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——VulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

8.6High
CVSS 4.0 vector shape for CVE-2026-40033Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPfreerdp: FreeRDP: Remote code execution via heap-buffer-overflow in gdi_CacheToSurface
other:Red Hat severity ratingcvssV3_1
  • 2026-05-26T15:01:26.044Z: Reported to Red Hat.
  • 2026-05-26T14:08:47.535Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
FreeRDPFreeRDP0, 3.26.0unaffected
Weakness

CWE details

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.

CWE-787 · source CWE mapping

Out-of-bounds Write

Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.