CVE-2026-121964: FreeRDP before 3.32.2 Heap Buffer Overflow via rpc_client_recv_fragment
FreeRDP before 3.32.2 contains a heap-based buffer overflow in the RD Gateway RPC client, where rpcclientrecvfragment writes BINDACK and ALTERCONTEXTRESP 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 allochint and fraglength values to overwrite client heap memory with attacker-controlled data, causing a crash or potentially arbitrary code execution.
Other sources
FreeRDP before 3.32.2 Heap Buffer Overflow via rpcclientrecvfragment
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.32.2+dfsg-1 - Upgrade
Upgrade
azurelinux/freerdpto a version that resolves this vulnerability.Fixed in 2:3.33.0-10.azl4
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
FreeRDP clients that use the RD Gateway RPC client and connect to a malicious or compromised RD Gateway are exposed. The affected software listings include Debian freerdp2, Debian freerdp3, and FreeRDP freerdp; the issue is reported in FreeRDP versions before 3.32.2.
What must an attacker be able to do to exploit it?
An attacker needs to make the client process crafted BIND_ACK or ALTER_CONTEXT_RESP RPC fragments from an RD Gateway. The fragments manipulate alloc_hint and frag_length values so attacker-controlled data can overwrite heap memory.
What is the immediate remediation?
Update FreeRDP to version 3.32.2 or later. If updating cannot be done immediately, avoid connecting affected clients through RD Gateways that are not trusted or may be compromised.