Skip to main content

FreeRDP CVE-2026-121964

| EUVDEUVD-2026-116964 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-04 VulnCheck GHSA-m8gw-hjr2-4jc5
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Operate or compromise RD Gateway server
  2. Delivery
    Complete TLS/NLA/RPC BIND handshake with victim client
  3. Exploit
    Send crafted PTYPE_RESPONSE with mismatched alloc_hint to advance pdu->s position
  4. Execution
    Send PTYPE_BIND_ACK triggering EnsureCapacity-not-EnsureRemainingCapacity
  5. Persist
    Heap out-of-bounds write with attacker-controlled length and content
  6. Impact
    Client 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.

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

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

Alert me

AnalysisAIv1 – 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

FreeRDP 0 <3.32.2

Affected Packages

euvd freerdp fix: 3.32.2

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 9.1 CRITICAL

Attacker-controlled write length and content support potential I:H; confirmed crash gives A:H; no confidentiality impact described in evidence.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
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
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 04, 2026 - 17:02 EUVD
CVE Published
Nov 04, 2026 - 15:33 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 53% exploitable
Prevalence
Medium
popular open-source RDP client used in Linux and VDI deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor 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.6%
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
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
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

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