Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconStand up malicious RDP server
-
DeliveryVictim FreeRDP client connects
-
ExploitNegotiate NSCodec for surface bits
-
InstallSend SURFACE_BITS_COMMAND with oversized bmp.width/height
-
C2Overflow heap during bitmap copy
-
ExecuteOverwrite adjacent heap with controlled pixels
-
ImpactAchieve code execution in client
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 to establish an RDP session to an attacker-controlled, compromised, or man-in-the-middled server, and the session must negotiate the NSCodec (NSC) codec for surface bits - the vulnerable gdi_surface_bits()/nsc_process_message() path is only reached when SURFACE_BITS_COMMAND messages are handled via NSCodec. The attacker must control both the bmp.width/bmp.height fields and the associated pixel payload (both are server-supplied, so this is inherent once a malicious server is in the path). Limiting factors: the affected party is the connecting client, not a listening service, so the attacker cannot reach victims unsolicited - a client must initiate or be induced to make the connection; this is a server-to-client attack against FreeRDP versions below 3.24.0. No authentication on the attacker's server is needed and no special client configuration beyond standard RDP usage that permits NSCodec. |
| Impact | Signals diverge and should be weighed together. The vendor CVSS 4.0 base score is 9.3 (Critical) with AV:N/AC:L/PR:N/UI:N and high confidentiality, integrity, and availability impact, which on its face reads as trivially exploitable. However, this is a client-side / server-to-client attack: exploitation requires the victim's FreeRDP client to connect to an attacker-controlled or compromised RDP server, so the UI:N rating is arguably optimistic - realistically there is user/operator action to initiate the connection (verify against vendor advisory GHSA-rrqm-46rj-cmx2). Offsetting the high CVSS, EPSS is only 0.04% (13th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis; heap-overflow-to-RCE is also non-trivial to weaponize reliably given modern heap hardening. Net assessment: a genuinely serious memory-corruption bug worth prompt patching, but not currently evidence of active mass exploitation - priority is driven by the breadth of FreeRDP deployment rather than by observed in-the-wild activity. |
| Exploit ScenarioDerived | An attacker stands up a malicious RDP server (or compromises/MITMs a legitimate one) and lures or waits for a FreeRDP-based client to connect. During the session the server sends a SURFACE_BITS_COMMAND with NSCodec data carrying oversized bmp.width/bmp.height plus attacker-chosen pixel bytes, triggering a heap overflow that overwrites adjacent allocations and may yield code execution in the client process. No public exploit is identified at time of analysis, but the low attack complexity makes a reliable proof-of-concept plausible for a skilled researcher. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Heap buffer overflow in FreeRDP's NSCodec surface-bits handler (versions prior to 3.24.0) lets a malicious or compromised RDP server corrupt heap memory on connecting clients. The gdi_surface_bits() path passes server-supplied bmp.width and bmp.height into nsc_process_message() without validating them against the actual desktop dimensions, and because the attacker also controls the decoded pixel data, the out-of-bounds write can overwrite adjacent heap allocations with attacker-chosen bytes - a potential path to remote code execution. EPSS is low (0.04%, 13th percentile) and there is no public exploit identified at time of analysis.
Earlier versions of this analysis (4)
Heap buffer overflow in the FreeRDP RDP client (versions prior to 3.24.0) lets a malicious or compromised RDP server corrupt client-side heap memory by sending crafted SURFACE_BITS_COMMAND messages decoded with NSCodec. The gdi_surface_bits() function trusts attacker-controlled bmp.width and bmp.height without validating them against actual desktop dimensions, and because the server also controls the pixel payload, the out-of-bounds write may be steerable toward adjacent heap structures, creating a potential remote code execution path. No public exploit has been identified at time of analysis and EPSS exploitation probability is very low (0.04%), but the bug is broadly distributed via downstream Linux vendors (Red Hat, SUSE).
Heap buffer overflow in FreeRDP versions prior to 3.24.0 allows a malicious or compromised RDP server to corrupt heap memory on the connecting client. The flaw lives in gdi_surface_bits() when SURFACE_BITS_COMMAND messages are decoded with NSCodec: the server-supplied bmp.width and bmp.height are not validated against the real desktop surface, and because the attacker also controls the pixel payload, the out-of-bounds write can be steered to overwrite adjacent heap memory. EPSS is low (0.04%, 13th percentile) and there is no public exploit identified at time of analysis, but the issue carries a CVSS 4.0 base score of 9.3 and is fixed in 3.24.0.
Heap buffer overflow in FreeRDP versions prior to 3.24.0 lets a malicious or compromised RDP server overwrite adjacent heap memory on connecting clients via crafted NSCodec SURFACE_BITS_COMMAND messages. Because the attacker controls both the unvalidated bmp.width/bmp.height fields and the pixel payload written during bitmap decoding, the corruption is attacker-influenced and potentially exploitable for code execution. CVSS 4.0 rates this 9.3 (critical); EPSS is low (0.04%, 13th percentile) and there is no public exploit identified at time of analysis.
Heap overflow in FreeRDP SURFACE_BITS.
RemediationAI
Vendor-released patch: FreeRDP 3.24.0 - upgrade clients and any embedded libraries to 3.24.0 or later (fix commit 83d9aedea278a74af3e490ff5eeb889c016dbb2b). On Red Hat and SUSE systems, apply the corresponding distribution updates (e.g. RHSA-2026:6340/6727/6743/6799/6918/6958/10076 and SUSE-SU-2026:1129/1160/1164/1165/1398) and restart affected applications. Where immediate patching is not possible, the practical compensating control is to restrict outbound RDP: only connect FreeRDP clients to trusted, known RDP servers and block or egress-filter connections to untrusted RDP endpoints (default 3389), since the attack originates from the server side - the trade-off is reduced flexibility for users who legitimately connect to many hosts. Avoid connecting to untrusted or unknown RDP servers and prefer servers that do not negotiate NSCodec where configurable, recognizing that codec negotiation is server-driven and cannot be fully relied upon as a control. Full details are in the advisory at https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-rrqm-46rj-cmx2.
Affected VersionsENISA
Affected Packages
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 the leading open-source implementation of Microsoft's Remote Desktop Protocol and underpins many third-party RDP clients (e.g. Remmina) and is packaged across major Linux distributions, as the Red Hat and SUSE errata indicate. The flaw is a CWE-122 heap-based buffer overflow in the NSC (NSCodec) decoder, libfreerdp/codec/nsc.c. SURFACE_BITS_COMMAND messages carry bitmap update regions; when the codec is NSCodec, the server-provided width/height are used to drive freerdp_image_copy_no_overlap() into the destination surface buffer. The buffer is sized for the negotiated desktop dimensions (nWidth/nHeight), but the code copied 'width'/'height' rows and columns directly, so values exceeding the surface caused writes past the allocation. The official fix (commit 83d9aedea2) clamps the copy region: cwidth = nWidth - nXDst and cheight = nHeight - nYDst when the destination offset plus dimension would exceed the surface bounds.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N
Server-to-client attack: victim client must connect to a malicious server (UI:R), no attacker auth (PR:N), low complexity, with heap corruption enabling potential full RCE (C/I/A:H).
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
8DescriptionCVE.org
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, the gdi_surface_bits() function processes SURFACE_BITS_COMMAND messages sent by the RDP server. When the command is handled using NSCodec, the bmp.width and bmp.height values provided by the server are not properly validated against the actual desktop dimensions. A malicious RDP server can supply crafted bmp.width and bmp.height values that exceed the expected surface size. Because these values are used during bitmap decoding and memory operations without proper bounds checking, this can lead to a heap buffer overflow. Since the attacker can also control the associated pixel data transmitted by the server, the overflow may be exploitable to overwrite adjacent heap memory. This vulnerability is fixed in 3.24.0.
Executive ViewAI
FreeRDP versions before 3.24.0 contain a critical heap buffer overflow in RDP connection handling that enables remote code execution when clients connect to a malicious or compromised server. All organizations deploying FreeRDP must immediately identify affected instances and upgrade to eliminate this path to unauthorized system access.
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.
Related Vulnerabilities in FreeRDP Protocol Implementation Flaws
View all 8Use-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 |
|---|---|
| SUSE Liberty Linux 10 | Fixed |
| 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 LTSS Extended Security 12 SP5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| 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 |
EUVD-2026-12060
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB