Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperate or compromise RD Gateway server
-
DeliveryComplete TLS/NLA/RPC BIND handshake with victim client
-
ExploitSend crafted PTYPE_RESPONSE with mismatched alloc_hint to advance pdu->s position
-
ExecutionSend PTYPE_BIND_ACK triggering EnsureCapacity-not-EnsureRemainingCapacity
-
PersistHeap out-of-bounds write with attacker-controlled length and content
-
ImpactClient process crash or potential arbitrary code execution
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 | The vulnerable code path is reached only when FreeRDP falls back to the TSG/RD Gateway path (transport.c rpcFallback), meaning the client must be configured to use an RD Gateway. The attacker must operate or have compromised that specific RD Gateway - a targeted, infrastructure-dependent precondition. The gateway must complete a full TLS handshake, an NLA/NTLM negotiation leg, and the RPC BIND exchange to reach CONTEXT_NEGOTIATED before the crafted fragments are accepted; this rules out blind or unauthenticated Internet scanning. The PoC uses /cert:ignore to avoid certificate validation failure against a self-signed cert, but a compromised legitimate gateway with a trusted certificate would not require this bypass on the client. Direct RDP connections that do not traverse an RD Gateway are entirely unaffected. |
| Impact | The CVSS 4.0 score of 8.7 reflects a network-reachable, zero-complexity heap overflow (AV:N/AC:L/AT:N/PR:N/UI:N) in FreeRDP's RD Gateway RPC client. However, the official vector scores only VA:H (availability impact) while the advisory explicitly states the write length and content are attacker-controlled - a condition technically consistent with arbitrary code execution, tagged as RCE. This is a tension in the input data: the CVSS impact metrics appear conservative relative to the described primitive. The decision label is 'this_week' (not 'act_now'), suggesting the intelligence provider does not yet assess widespread active exploitation. No KEV listing is present. A detailed proof-of-concept Python server (gw_server.py) is included in the advisory and was reproduced on a specific commit, confirming the bug is triggerable; however, the PoC demonstrates a crash rather than confirmed code execution, so RCE remains potential. The critical limiting factor is that the attacker must operate or have compromised an RD Gateway the victim connects to - this is a server-to-client attack, not an Internet-scanning scenario. Combined with EPSS data being absent, the real-world risk is meaningful for organizations routing RDP traffic through RD Gateways, but substantially lower for direct RDP deployments. |
| Exploit ScenarioDerived | An attacker who operates or has compromised an RD Gateway server lures or intercepts a FreeRDP client configured to use that gateway. After completing a legitimate-looking TLS, NLA, and RPC BIND handshake to reach CONTEXT_NEGOTIATED state, the attacker sends two crafted RPC fragments: a PTYPE_RESPONSE with a mismatched alloc_hint that advances the persistent pdu->s stream position without a reset, followed by a PTYPE_BIND_ACK that triggers Stream_EnsureCapacity (which checks total capacity, not remaining capacity), writing attacker-controlled data at the non-zero position and overrunning the 4096-byte heap buffer by approximately 3904 bytes. A public PoC reference exists in the advisory; it demonstrates a confirmed crash and is not independently verified as producing code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Heap-based out-of-bounds write in FreeRDP's RD Gateway (TSG) RPC client lets a malicious or compromised RD Gateway overwrite client heap memory with attacker-controlled length and content, crashing the client and, per the vendor, potentially leading to arbitrary code execution. All FreeRDP builds up to and including 3.32.1 that connect through an RD Gateway are affected (CPE cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*); direct RDP connections that never traverse a gateway are unaffected. Exploitation is not confirmed in the wild and the CVE is not in CISA KEV, but a full proof-of-concept malicious gateway (gw_server.py) is published in the vendor advisory and was reproduced on a recent commit, so the trigger is publicly documented; vuln.today prioritizes it for remediation this week rather than as an emergency, reflecting the targeted, gateway-dependent precondition.
RemediationAI
Upgrade FreeRDP to 3.32.2 or later, the version in which the package data marks the flaw fixed; the vendor advisory at https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-q82v-5wjg-6h57 is the authoritative source for the patch and release notes, with additional detail at https://www.vulncheck.com/advisories/freerdp-before-3.32.2-heap-buffer-overflow-via-rpc-client-recv-fragment. Until clients are updated, the exposure is limited to sessions that traverse an RD Gateway, so environments that can route affected users over direct RDP connections, or over gateway transports that do not fall back to the TSG path, avoid the vulnerable code entirely; note that the rpcFallback path is entered precisely when the HTTP and WebSocket gateway transports fail, so this is a reliability trade-off rather than a complete substitute for patching. Client-side /cert:ignore should not be relied on as a control: it is only needed in the published PoC to accept a self-signed certificate, and a compromised legitimate gateway presenting a trusted certificate would reach the same code without any client bypass. Because the vulnerable branch performs no fragment-type sequence validation, there is no documented configuration switch that disables the BIND_ACK/ALTER_CONTEXT_RESP handling short of applying the update.
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's RD Gateway support implements the MS-RPCH / NCACN_HTTP RPC transport tunnelled over TLS and NLA/NTLM to a gateway, with fragments parsed in rpc_client_recv_fragment (libfreerdp/core/gateway/rpc_client.c). The BIND_ACK and ALTER_CONTEXT_RESP branch there writes the received fragment with Stream_Write(pdu->s, Stream_Buffer(fragment), len) after calling only Stream_EnsureCapacity(pdu->s, len), which guarantees total capacity but ignores the stream's current position; the per-call stream pdu->s is persistent across fragments and its position is not reset before that write. The position can be left non-zero by the sibling RESPONSE non-pipe branch, which appends StubLength bytes and only calls rpc_pdu_reset when alloc_hint equals StubLength, so a gateway that supplies mismatched alloc_hint and frag_length leaves the cursor advanced (4055 bytes in the published example) into the next fragment. Because the BIND_ACK/ALTER_CONTEXT_RESP branch has no rpc->State gate and no fragment-type sequence validation, a subsequent PTYPE_BIND_ACK with frag_length 4087 writes past the 4096-byte heap buffer allocated by rpc_pdu_new (about 3904 bytes of overrun, pointer-buffer 8142 versus capacity 4096 in the PoC), a CWE-122 heap-based buffer overflow. Reachability requires the client to use the gateway tunnel: transport_connect falls back to the TSG path via rpcFallback after the HTTP and WebSocket gateway transports fail, and tsg_connect must complete the TLS, NLA and secure BIND exchanges to CONTEXT_NEGOTIATED before crafted fragments are accepted. The vendor's CVSS 4.0 vector is AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N (8.7), while the internal assessment scores it CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H; the confirmed outcome in the advisory is a memory-corruption crash, with code execution described as potential rather than demonstrated.
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
Attacker-controlled write length and content support potential I:H; confirmed crash gives A:H; no confidentiality impact described in evidence.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
FreeRDP before 3.32.2 contains a heap-based buffer overflow in the RD Gateway RPC client, where rpc_client_recv_fragment writes BIND_ACK and ALTER_CONTEXT_RESP fragments into a persistent PDU stream after checking only total capacity rather than remaining capacity from the current stream position. A malicious or compromised RD Gateway can send crafted RPC fragments with manipulated alloc_hint and frag_length values to overwrite client heap memory with attacker-controlled data, causing a crash or potentially arbitrary code execution.
Technical POC Analysis
Heap-based buffer overflow (CWE-122) in rpcclientrecvfragment, libfreerdp/core/gateway/rpcclient.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
FreeRDP, a widely used remote desktop client, contains a high-severity heap overflow vulnerability (CVE-2026-121964) that can be triggered only when connecting through a malicious or compromised RD Gateway. Since many organizations rely on RD Gateways for remote access, this flaw could allow an attacker who controls a gateway to execute arbitrary code on employee workstations, leading to potential data theft, ransomware deployment, or further network compromise. Leadership should prioritize remediation for any systems using FreeRDP through a gateway, as the attack vector is publicly documented and the impact could be severe.
No vendor-released patch identified at time of analysis; interim mitigations include restricting connections to trusted RD Gateways, monitoring gateway traffic for anomalies, and isolating affected systems.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
EUVD-2026-116964
GHSA-m8gw-hjr2-4jc5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB