FreeRDP
CVE-2026-23531
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStand up malicious RDP server
-
DeliveryLure client to connect
-
ExploitNegotiate RDPGFX graphics channel
-
ExecutionSend crafted ClearCodec glyphData surface update
-
PersistOverflow destination rectangle in clear_decompress
-
ImpactClient heap corruption and crash (DoS, possible RCE)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
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 | Exploitation requires the victim's FreeRDP client (version < 3.21.0) to connect to an attacker-controlled or compromised RDP server and negotiate the RDPGFX graphics pipeline using the ClearCodec codec; the specific trigger is a surface update where ClearCodec |
| Impact | Signals point to a moderate, not top-tier, priority. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) scores only availability impact (VA:H) with VC:N/VI:N, i.e. it is formally a DoS, consistent with the description's qualifier that code execution is only 'potential' and depends on allocator behavior. EPSS is low (0.13%) and the CVE is not in CISA KEV, so there is no evidence of active exploitation despite a public PoC (E:P in the vector reflects 'proof-of-concept', matching the advisory). A key nuance the vector understates: this is a malicious-server-against-client bug, so real-world exploitation requires the victim to initiate or be redirected to a hostile RDP endpoint - UI:N somewhat overstates remote-trigger ease. Treat as a meaningful patch-soon item for fleets of RDP clients/gateways, but not an emergency on the level of an actively exploited unauthenticated server RCE. |
| Exploit ScenarioDerived | An attacker stands up a malicious RDP server (or compromises/hijacks a legitimate one) and lures a user - via a phishing link, a poisoned .rdp file, or a redirected connection - to connect with a vulnerable FreeRDP client. During the graphics handshake the server sends a crafted RDPGFX surface update with ClearCodec glyphData and an oversized destination rectangle, triggering the out-of-bounds write and crashing the client; public PoC code for this advisory exists, and depending on heap layout the corruption may be steered toward client-side code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Client-side heap buffer overflow in FreeRDP's ClearCodec decoder (versions prior to 3.21.0) lets a malicious or compromised RDP server corrupt a connecting client's memory. When glyphData is present, clear_decompress invokes freerdp_image_copy_no_overlap without validating the destination rectangle, producing an out-of-bounds read/write via crafted RDPGFX surface updates. Publicly available exploit code exists (per the GitHub Security Advisory), but it is not listed in CISA KEV and EPSS is low (0.13%, 33th percentile); confirmed impact is denial of service with a residual, allocator-dependent code-execution risk.
Earlier versions of this analysis (4)
Denial-of-service and potential remote code execution in FreeRDP RDP clients before version 3.21.0 arises from a heap buffer overflow in the ClearCodec decompressor. When a connected RDP server sends crafted RDPGFX surface updates containing glyphData, the client's clear_decompress routine copies pixels without bounds-checking the destination rectangle, letting a malicious or compromised server corrupt the client heap. Publicly available exploit code exists, though EPSS exploitation probability is low (0.13%) and it is not in CISA KEV.
Heap buffer overflow in FreeRDP's ClearCodec decoder (clear.c) lets a malicious or compromised RDP server crash connecting clients and potentially corrupt heap memory in versions prior to 3.21.0. When glyphData is present, clear_decompress copies into the destination via freerdp_image_copy_no_overlap without validating the destination rectangle, producing an out-of-bounds read/write driven by crafted RDPGFX surface updates. Publicly available exploit code exists and a vendor patch (3.21.0) is released, but there is no public exploit identified as actively exploited and EPSS is low (0.13%).
Heap-based out-of-bounds read/write in FreeRDP's ClearCodec decoder (prior to 3.21.0) lets a malicious or compromised RDP server crash connecting clients and potentially corrupt heap memory. When a crafted RDPGFX surface update carries ClearCodec glyphData, the decoder copies pixels via freerdp_image_copy_no_overlap without validating the destination rectangle, overflowing the client-side buffer. Publicly available exploit code exists; EPSS is low (0.13%) and there is no public exploit identified in CISA KEV, indicating this is a recently disclosed, not yet widely exploited, server-to-client memory-safety flaw.
ClearCodec glyph data heap overflow in FreeRDP enables client-side RCE.
RemediationAI
Vendor-released patch: upgrade FreeRDP to 3.21.0 or later (https://github.com/FreeRDP/FreeRDP/releases/tag/3.21.0), and on Red Hat systems apply the corresponding RHSA errata (e.g. RHSA-2026:2081/2222/3039 at access.redhat.com) and restart any long-running clients, gateways, or sessions that link the library. Where immediate patching is impossible, the practical compensating control is to restrict which servers clients may connect to - allowlist trusted, known RDP hosts and block outbound RDP (and RDPGFX redirection) to untrusted endpoints at the network egress, since the bug is only triggered by a malicious server's surface updates; the trade-off is reduced flexibility for ad-hoc connections. As a defense-in-depth measure, run RDP clients with reduced privileges and standard heap hardening (ASLR/heap protections) to lower the chance the overflow escalates from a crash to code execution; this mitigates impact but does not remove the vulnerability. Full reference: GHSA-xj5h-9cr5-23c5.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FreeRDP is the leading open-source implementation of Microsoft's Remote Desktop Protocol, embedded in clients such as Remmina, Weston, GNOME Connections, and numerous virtualization/VDI gateways, which is why Red Hat shipped many RHSA errata for it. The flaw lives in the ClearCodec image codec (libfreerdp/codec/clear.c, around lines 1139-1145), which decompresses RemoteFX-style 'CLEAR' surface bitmaps delivered over the RDPGFX (Graphics Pipeline) virtual channel. The root cause is CWE-122 (heap-based buffer overflow): the glyph-data code path copies pixels into a destination surface via freerdp_image_copy_no_overlap without first bounds-checking the destination rectangle against the allocated surface dimensions, so a server-controlled width/height/offset drives reads and writes past the heap allocation.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
Triggered only by a malicious server the victim connects to, so UI:R; AC:L for the reliable crash, with confirmed impact limited to availability (A:H) since RCE is unproven (C:N/I:N).
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
9DescriptionCVE.org
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.21.0, in ClearCodec, when glyphData is present, clear_decompress calls freerdp_image_copy_no_overlap without validating the destination rectangle, allowing an out-of-bounds read/write via crafted RDPGFX surface updates. A malicious server can trigger a client‑side heap buffer overflow, causing a crash (DoS) and potential heap corruption with code‑execution risk depending on allocator behavior and surrounding heap layout. Version 3.21.0 contains a patch for the issue.
Executive ViewAI
FreeRDP clients prior to version 3.21.0 contain a heap buffer overflow in the ClearCodec decoder exploitable by malicious RDP servers to corrupt client memory and cause denial of service or remote code execution; publicly available exploit code exists but active exploitation remains unreported. Organizations with remote workers or administrators using FreeRDP for RDP connectivity face risk of endpoint compromise and potential lateral network movement, particularly if connecting to untrusted or compromised servers.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Affected Products (CPE)CVE.org
Use-after-free in FreeRDP xf_clipboard_format_equal before 3.23.0. Clipboard format comparison uses freed memory. Fifth
Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Surface-to-window update triggers memory corrupti
Use-after-free in FreeRDP xf_SetWindowMinMaxInfo before version 3.23.0. X11 client window management triggers memory cor
Use-after-free in FreeRDP xf_cliprdr_provide_data clipboard handling before 3.23.0. Clipboard data exchange triggers mem
FreeRDP IRP thread handler has a use-after-free where the IRP is freed by Complete() then accessed on the error path. Fi
FreeRDP drive read heap overflow when server-controlled read length exceeds IRP output buffer. Fixed in 3.20.1. PoC avai
FreeRDP client before 3.20.1 has a heap buffer overflow in AUDIN format processing. A malicious RDP server can corrupt m
Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Different code path from CVE-2026-25953. PoC and
FreeRDP is a free implementation of the Remote Desktop Protocol. Rated critical severity (CVSS 9.8), this vulnerability
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest | Affected |
| Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Image SL-Micro Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE | Affected |
| Container suse/sl-micro/6.1/baremetal-os-container:2.2.1-7.43 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.67 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.57 | Affected |
| Container suse/sl-micro/6.1/base-os-container:2.2.1-5.64 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd | Affected |
| SUSE Liberty Linux 8 | Fixed |
| SUSE Liberty Linux 9 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 SUSE Linux Enterprise Workstation Extension 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 16.0 SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise Server 16.0 | Affected |
| 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 |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Server 12 SP5 | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP2 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP3 | Fixed |
| SUSE Linux Enterprise Desktop 12 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 12 SP2 | Fixed |
| SUSE Linux Enterprise Server 12 SP3 | Fixed |
| SUSE Linux Enterprise Server 12 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP2 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | Fixed |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | Fixed |
| SUSE Linux Enterprise Workstation Extension 12 SP2 | Fixed |
| SUSE Linux Enterprise Workstation Extension 12 SP3 | Fixed |
| SUSE Linux Enterprise Workstation Extension 12 SP4 | Fixed |
| SUSE Linux Enterprise Workstation Extension 12 SP5 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP4 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP5 | Fixed |
| SUSE Linux Enterprise Workstation Extension 15 SP6 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB