cve.bz

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

8.7 highExploit referenceEPSS 0.3%

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

On this page
FreeRDP through 3.32.1 has a heap out-of-bounds write in the RDPGFX client because the delete_surface callback truncates surface hash keys to 16 bits, leaving the surface table inconsistent so HashTable_GetKeys writes past its allocated key array. A malicious or man-in-the-middle RDP server can exploit this by creating surfaceId 0xFFFF, closing the RDPGFX channel, sending repeated DELETESURFACE PDUs, and then sending ENDFRAME or RESETGRAPHICS.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 23rd 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: no · Technical impact: total, 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
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-121958 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121958?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121958?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-121958 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
FreeRDPthrough 3.32.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12freerdp2no fix listedDEBIAN-CVE-2026-121958
Debian13freerdp3no fix listedDEBIAN-CVE-2026-121958
Debian14freerdp33.32.2+dfsg-1DEBIAN-CVE-2026-121958
Ubuntu16.04:LTS, 18.04:LTSfreerdpno fix listedUBUNTU-CVE-2026-121958
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 severity because an untrusted or compromised remote desktop server can trigger heap memory corruption in the client process, potentially leading to arbitrary code execution or application crash. To exploit this flaw, a user must actively establish a remote desktop connection to a rogue server or have their traffic intercepted by a malicious intermediary. Red Hat Enterprise Linux systems acting purely as remote desktop servers or that do not initiate outbound connections to untrusted endpoints are not exposed to this issue.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

--- 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 disable the RDPGFX dynamic virtual channel or restrict FreeRDP client sessions from connecting to untrusted RDP endpoints: upgrade to the fixed Freerdp builds, which apply the documented input check, closing all 3 injection vectors (malicious RDP server connection, man-in-the-middle RDP traffic interception, crafted RDPGFX pipeline commands). Until patched, this is a concern on FreeRDP clients initiating connections to untrusted RDP servers or over untrusted networks with RDPGFX enabled, so Restrict FreeRDP client connections to verified RDP endpoints, enforce network encryption against interception, and disable the RDPGFX dynamic virtual channel in client configurations. As a compensating measure, Randomize process memory layouts with ASLR to impede reliable arbitrary code execution, Enforce full RELRO and PIE to protect the Global Offset Table from overwrites during heap corruption exploitation, Enable Control Flow Integrity to validate indirect call targets and block control-flow hijacking, Deploy EDR agents to detect anomalous post-exploitation behaviors and child processes spawned by FreeRDP, and Enforce non-executable memory protections using the NX/XD bit to block execution of shellcode in heap pages. These controls limit blast radius and contain exploitation, but they do not fix the underlying surface key truncation defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-101 ASLR (Address Space Layout Randomization) (medium)

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

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