Skip to main content

FreeRDP CVE-2026-40033

| EUVDEUVD-2026-31830 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-05-26 VulnCheck GHSA-xmr8-h8p4-932m
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Stage malicious RDP server
  2. Delivery
    Lure victim via phishing or .rdp file
  3. Exploit
    Victim's FreeRDP client connects
  4. Execution
    Send crafted bitmap cache update
  5. Persist
    Trigger heap OOB write in gdi_CacheToSurface
  6. Impact
    Achieve code execution or crash client

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Victim must initiate an RDP session from a vulnerable FreeRDP client (any version below 3.26.0) to an attacker-controlled or attacker-compromised RDP server - this is reflected in the CVSS UI:P (Passive user interaction). No authentication to the malicious server is required since the vulnerability triggers during the RDP drawing/cache update phase before any meaningful trust boundary. The attack chain is limited by the need for the victim to reach the malicious server: this is NOT a server-side flaw exploitable by scanning the internet for exposed FreeRDP listeners, and it does not trigger from merely receiving an unsolicited RDP connection. Practical exploitation typically requires phishing the user with a crafted .rdp file, controlling DNS/network paths to redirect a legitimate RDP connection, or compromising a trusted RDP gateway.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H rates this 8.7 (High) with network attack vector, low complexity, no privileges, but Passive user interaction required - meaning the victim must initiate or accept an RDP session to a malicious server. SSVC reports Exploitation: PoC, Automatable: No, Technical Impact: Total, indicating proof-of-concept code exists but the attack does not lend itself to mass automated exploitation since it requires luring victims to attacker-controlled RDP endpoints. EPSS sits at 0.06% (18th percentile) and the CVE is not on CISA KEV, consistent with a client-side vulnerability requiring social engineering rather than internet-scannable server exposure. The signals align rather than conflict: high technical impact (RCE on the client) but realistic exploitation depends on tricking users - prioritize patching but treat as targeted-attack risk, not a wormable internet-facing flaw.

Exploit ScenarioDerived

An attacker stands up a malicious RDP server and lures a victim into connecting - for example by sending a crafted .rdp file via phishing, hosting a fake remote-support portal, or hijacking a legitimate RDP redirect. Once the victim's FreeRDP client connects, the server sends a malformed bitmap cache update whose cache entry dimensions exceed the destination surface, triggering the heap out-of-bounds write in gdi_CacheToSurface and corrupting heap memory to crash the client or, with PoC-grade exploitation, execute arbitrary code in the user's context.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Heap buffer overflow in FreeRDP versions prior to 3.26.0 allows a malicious RDP server to write out-of-bounds heap memory on connecting clients through the gdi_CacheToSurface function, potentially leading to remote code execution or client crash. The flaw stems from inconsistent rectangle validation where coordinates are clamped to UINT16_MAX but copy operations use unclamped cache entry dimensions. Publicly available exploit code exists per SSVC, though EPSS exploitation probability remains low at 0.06%.

RemediationAI

Vendor-released patch: FreeRDP 3.26.0 - upgrade all FreeRDP client installations and any embedding applications (Remmina, GNOME Connections, xfreerdp/wlfreerdp builds) to this version or later, with the fix tracked in commit 23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 and the advisory at https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff. SUSE and other Linux distributors will ship backported package updates; apply distribution updates as they become available rather than waiting for a major version bump. Where immediate patching is not possible, restrict outbound RDP (TCP/3389 and UDP/3389) at egress firewalls so endpoints cannot connect to arbitrary external RDP servers, accepting the trade-off that legitimate remote-to-external-host RDP use cases will be blocked, and instruct users not to initiate RDP sessions to untrusted hosts or click .rdp files from untrusted sources since the attack requires the client to connect to a malicious server.

Affected VersionsENISA

FreeRDP 0 <3.26.0

Affected Packages

euvd freerdp fix: 3.26.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeRDP is a widely deployed open-source implementation of the Microsoft Remote Desktop Protocol (RDP), used by Linux remote desktop clients, virtualization tools, and downstream distributions including SUSE. The vulnerability is classified as CWE-122 (Heap-based Buffer Overflow) and lives in the GDI (Graphics Device Interface) caching path - specifically gdi_CacheToSurface, which copies bitmap cache entries into surface bitmaps during RDP screen drawing. The validation logic clamps source rectangle coordinates to UINT16_MAX to look safe, but the subsequent memcpy/blit uses the cache entry's own width and height fields, which remain attacker-controlled. A hostile RDP server can craft cache update messages whose declared dimensions overshoot the destination surface bounds, producing large heap out-of-bounds writes on the client side.

Know when Freerdp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
SUSE 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 8.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 26, 2026 - 15:22 NVD
8.8 (HIGH) 8.7 (HIGH)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

FreeRDP, the widely-used remote desktop protocol client, contains a vulnerability (CVE-2026-40033) affecting versions before 3.26.0 that allows a malicious RDP server to execute code on connecting clients with publicly available exploit code. Organizations using FreeRDP for remote access face potential client machine compromise and lateral movement risk, making immediate patching critical to prevent unauthorized access and system control.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-25997 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_clipboard_format_equal before 3.23.0. Clipboard format comparison uses freed memory. Fifth

CVE-2026-25953 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Surface-to-window update triggers memory corrupti

CVE-2026-25952 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_SetWindowMinMaxInfo before version 3.23.0. X11 client window management triggers memory cor

CVE-2026-25959 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_cliprdr_provide_data clipboard handling before 3.23.0. Clipboard data exchange triggers mem

CVE-2026-22857 CRITICAL POC
9.8 Jan 14

FreeRDP IRP thread handler has a use-after-free where the IRP is freed by Complete() then accessed on the error path. Fi

CVE-2026-22854 CRITICAL POC
9.8 Jan 14

FreeRDP drive read heap overflow when server-controlled read length exceeds IRP output buffer. Fixed in 3.20.1. PoC avai

CVE-2026-22852 CRITICAL POC
9.8 Jan 14

FreeRDP client before 3.20.1 has a heap buffer overflow in AUDIN format processing. A malicious RDP server can corrupt m

CVE-2026-25955 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Different code path from CVE-2026-25953. PoC and

CVE-2024-32041 CRITICAL POC
9.8 Apr 22

FreeRDP is a free implementation of the Remote Desktop Protocol. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2023-40574 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40569 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40567 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy