Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls or compromises RDP Gateway server
-
DeliveryVictim initiates FreeRDP session through gateway
-
ExploitServer returns crafted RPC PDU with inflated alloc_hint
-
ExecutionStream_EnsureCapacity allocates undersized heap buffer
-
PersistWrite of StubLength bytes overflows buffer boundary
-
ImpactHeap corruption enables arbitrary code execution as client user
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 target must be running FreeRDP prior to version 3.27.0 and must route their RDP session through an RDP Gateway (RDG/RPC-over-HTTP) - standard direct RDP connections that bypass the gateway code path are not affected. The attacker must control or compromise the gateway server that the FreeRDP client connects to, as the vulnerability is triggered by crafted server-to-client RPC PDU responses; no client-side authentication or privilege is required from the attacker. The victim must actively initiate the connection (UI:P), ruling out passive exploitation. Non-default gateway configurations are not required - any use of the built-in FreeRDP gateway client against a malicious server is sufficient. Exploitation is limited to the client session context and does not imply lateral movement unless the compromised client holds credentials or access to further systems. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) reflects a network-reachable, low-complexity flaw with full client-side impact, tempered only by the UI:P requirement that the victim user actively initiate an RDP gateway session. In practice, this bar is cleared by any routine use of FreeRDP through an RDP Gateway, meaning exploitation is a realistic threat in environments where users connect to external or organizationally-managed gateways. No EPSS data was provided in the available intelligence, and the CVE is not listed in CISA KEV, so confirmed in-the-wild exploitation is not established. However, heap overflows in network-facing PDU parsing paths (CWE-122) historically yield reliable exploits once the off-by-one or size-mismatch primitive is understood, and the public availability of the fix commit makes root-cause analysis straightforward for researchers. Even a mid-sized municipal IT team in opole operating remote-access infrastructure via FreeRDP should treat this as a priority patch - the attack requires only that a user connect to a server under attacker influence, with no authenticated attacker-side prerequisites. The absence of a known weaponized POC and KEV listing moderates but does not eliminate urgency. |
| Exploit ScenarioDerived | An attacker deploys or compromises an RDP Gateway server and advertises it to potential victims, or positions themselves to intercept gateway traffic. When a FreeRDP user initiates a session through the malicious gateway, the server returns an RPC PDU fragment with an inflated alloc_hint value, causing FreeRDP to allocate an undersized heap buffer and then write beyond its bounds with actual stub data - overwriting adjacent heap structures and enabling arbitrary code execution in the context of the connecting user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 19, 2026
Heap-based buffer overflow in FreeRDP's Remote Desktop Gateway RPC client allows a malicious or attacker-controlled gateway server to corrupt heap memory on a connecting client, potentially achieving arbitrary code execution. The flaw resides in libfreerdp/core/gateway/rpc_client.c, where stream capacity was sized against a server-supplied alloc_hint value rather than the actual stub data length, enabling a server to induce an undersized allocation followed by an out-of-bounds write. Alpine Linux freerdp packages prior to 3.27.1-r0 and upstream FreeRDP releases prior to 3.27.0 are confirmed affected. No confirmed active exploitation or CISA KEV listing exists at time of analysis.
Earlier versions of this analysis (1)
FreeRDP on Alpine Linux received a security fix in package version 3.27.1-r0, addressing an unspecified vulnerability in the open-source Remote Desktop Protocol client implementation. The nature, impact class, and attack vector of the underlying flaw are not disclosed in the available intelligence - only the Alpine Linux vendor advisory confirms a fix was issued. No exploitation status, CVSS score, or CWE classification is available at time of analysis.
RemediationAI
Upgrade FreeRDP to version 3.27.0 or later; Alpine Linux users should update the freerdp package to 3.27.1-r0 or later via the standard apk upgrade mechanism. The upstream release is available at https://github.com/FreeRDP/FreeRDP/releases/tag/3.27.0 and the security advisory is published at https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-9gxm-3mf5-f5cx. For environments where immediate patching is not feasible, a targeted compensating control is to restrict FreeRDP usage exclusively to connections against organizationally-controlled and verified RDP Gateway servers - this eliminates the risk from attacker-operated gateways while preserving legitimate access; however, it does not protect against compromise of trusted gateways. As a stronger temporary measure, blocking outbound gateway connections (TCP 443 to non-approved gateway endpoints) via firewall policy prevents exploitation at the cost of limiting external RDP gateway access. Both workarounds should be treated as interim only, as the upstream patch is available.
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 is an open-source implementation of Microsoft's Remote Desktop Protocol used extensively on Linux desktops and in enterprise remote-access tooling. The vulnerable code path is in the RPC-over-HTTP gateway client (rpc_client.c), which handles connections through an RDG (Remote Desktop Gateway) - a Microsoft infrastructure component for brokering RDP sessions over HTTPS. CWE-122 (Heap-based Buffer Overflow) identifies the root cause: the function rpc_client_recv_fragment() invoked Stream_EnsureCapacity(pdu->s, response->alloc_hint), where alloc_hint is a server-controlled field from the incoming RPC PDU. Because alloc_hint may exceed the actual stub data length (StubLength), the buffer could be allocated at a size insufficient to safely receive subsequent writes at the current stream position. The upstream fix, visible in commit 9f2da52c2341cc14a96ad12e69c5b83d0bcd8b5a via GitHub PR #12873, replaces the call with Stream_EnsureRemainingCapacity(pdu->s, StubLength), ensuring expansion is based on the actual bytes to be written rather than a server-supplied hint. Affected CPE covers FreeRDP versions prior to 3.27.0.
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:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable server-to-client flaw; user must initiate gateway connection (UI:R); attacker needs no privileges as they control the server side; impact is fully client-scoped.
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
3DescriptionCVE.org
Alpine Linux: freerdp fixed in 3.27.1-r0
Executive ViewAI
FreeRDP Remote Desktop Gateway library (versions prior to 3.27.0) contains a memory corruption vulnerability allowing arbitrary code execution when clients connect to compromised servers. This impacts organizations with FreeRDP deployments in Alpine Linux and upstream environments, potentially exposing client endpoints to remote system compromise.
Apply vendor patch: FreeRDP 3.27.0 (upstream) or 3.27.1-r0 (Alpine Linux).
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.
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-62667
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB