cve.bz

CVE-2026-121964 freerdp freerdp: Heap-based Buffer Overflow

8.7 highExploit referenceEPSS 0.6%

High (8.7) in freerdp freerdp. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-11-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-121964 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121964?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121964?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-121964 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
FreeRDPbefore 3.32.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12freerdp2no fix listedDEBIAN-CVE-2026-121964
Debian13freerdp3no fix listedDEBIAN-CVE-2026-121964
Debian14freerdp33.32.2+dfsg-1DEBIAN-CVE-2026-121964
Ubuntu16.04:LTS, 18.04:LTSfreerdpno fix listedUBUNTU-CVE-2026-121964
Red Hatenterprise_linux:10.2freerdp, libwinpr, freerdp-libs and 8 more2:3.32.2-1.el10_2RHSA-2026:94514
Red Hatenterprise_linux:10.3freerdp, libwinpr, freerdp-libs and 8 more2:3.32.2-1.el10_3RHSA-2026:98598
AlmaLinux10freerdp, libwinpr, freerdp-libs and 3 more2:3.32.2-1.el10_2ALSA-2026:94514
AlmaLinux10freerdp, libwinpr, freerdp-libs and 3 more2:3.32.2-1.el10_3ALSA-2026:98598
Rocky Linux10freerdp, libwinpr, freerdp-libs and 8 more2:3.32.2-1.el10_2RLSA-2026:98598

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because successful exploitation enables a compromised Remote Desktop Gateway to corrupt heap memory and potentially achieve arbitrary code execution with the permissions of the client user. Exploitation requires user initiation by connecting through an untrusted gateway, preventing unauthenticated remote attackers from triggering the vulnerability independently. Furthermore, standard direct RDP connections that do not route traffic through RD Gateway RPC transport are not exposed to this flaw.

Red Hat's mitigation

Limit FreeRDP connections strictly to trusted Remote Desktop Gateways and ensure server certificate verification is enforced.

Operational controls:

1. Avoid routing RDP connections through untrusted or unverified RD Gateways (do not supply untrusted hosts to the `/g:` or `/gw:` parameters).

2. Connect directly to target RDP servers, utilizing a trusted VPN rather than an intermediate RD Gateway where feasible.

3. Ensure strict TLS certificate validation is maintained; do not supply the `/cert:ignore` option on the command line or disable certificate validation in connection profiles.

If FreeRDP client functionality is not required on the system, remove the package:

# dnf remove freerdp

Caveats: Removing the `freerdp` package may also remove dependent desktop packages or graphical remote desktop clients (such as GNOME Connections or Remmina).

--- CME Mitigation Guidance (2026-11-06) ---

Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to enforce remaining stream buffer capacity validation rather than total capacity checks in the FreeRDP RD Gateway RPC client during fragment processing: upgrade to FreeRDP 3.32.2 (or the fixed Freerdp builds), which verify remaining buffer capacity from the current stream offset instead of total capacity before writing incoming RPC fragments, closing all 2 injection vectors (crafted RPC BIND_ACK fragments, crafted RPC ALTER_CONTEXT_RESP fragments). Until patched, this is only a concern on FreeRDP client connections routed through an RD Gateway — Direct RDP connections not routed through RD Gateway RPC transport are unaffected — so Avoid routing RDP connections through untrusted RD Gateways, connect directly over trusted VPNs instead of intermediate gateways, and maintain strict TLS certificate validation by avoiding cert:ignore options. As a compensating measure, Enable ASLR to randomize FreeRDP memory addresses and complicate reliable exploitation following heap corruption, Enforce Full RELRO and PIE to prevent Global Offset Table overwrites and randomize code segment locations, Use Control Flow Integrity or Shadow Call Stack to validate indirect call targets against function pointer hijacking, Deploy EDR agents to monitor and detect anomalous process execution or memory injection spawned from the FreeRDP process, and Enforce NX/XD non-executable memory protections on the heap to prevent execution of injected payload code. These controls limit blast radius and contain exploitation, but they do not fix the underlying heap-based buffer overflow defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-404 Certificate Pinning (high)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10freerdpAffected
Red Hat Enterprise Linux 6freerdpNot affected
Red Hat Enterprise Linux 7freerdpAffected
Red Hat Enterprise Linux 8freerdpAffected
Red Hat Enterprise Linux 9freerdpAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-121964.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON