Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109939 Overview
CVE-2026-109939 is a NULL pointer dereference vulnerability [CWE-476] in FreeRDP versions 3.27.1 through 3.31.x, fixed in 3.32.0. The flaw resides in update_read_cache_bitmap_v3_order() within libfreerdp/core/orders.c. The function accesses the client bitmap cache when the CBR3_DO_NOT_CACHE flag is set, even though the cache is not initialized before the Demand Active phase of the Remote Desktop Protocol (RDP) connection. A malicious or compromised RDP server can send a Cache Bitmap V3 order during connection setup to crash a connecting client that has enabled the non-default Bitmap Cache V3 feature using /cache:codec:<rfx|nsc|jpeg>.
Critical Impact
A hostile RDP server can crash FreeRDP clients that opt into Bitmap Cache V3, producing a reliable client-side denial of service during connection setup.
Affected Products
- FreeRDP 3.27.1 through 3.31.x
- FreeRDP-based clients compiled with the Bitmap Cache V3 codec feature
- Downstream distributions and applications bundling vulnerable FreeRDP libraries
Discovery Timeline
- 2026-10-13 - CVE-2026-109939 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109939
Vulnerability Analysis
FreeRDP implements RDP order processing in libfreerdp/core/orders.c. The update_read_cache_bitmap_v3_order() function parses Cache Bitmap V3 orders sent by the RDP server. When the server sets the CBR3_DO_NOT_CACHE flag, the client code still dereferences the bitmap cache structure to perform bookkeeping.
During the RDP handshake, the client bitmap cache is allocated and initialized only after the Demand Active PDU is processed. A server that transmits a Cache Bitmap V3 order before this point causes the client to dereference a NULL cache pointer. The result is a process crash on the client side.
The condition requires the client to opt into Bitmap Cache V3, which is not enabled by default. Users invoking FreeRDP with /cache:codec:rfx, /cache:codec:nsc, or /cache:codec:jpeg activate the vulnerable code path.
Root Cause
The root cause is a missing initialization check in update_read_cache_bitmap_v3_order(). The function trusts that the bitmap cache context exists whenever a Cache Bitmap V3 order arrives. It does not validate the cache pointer or verify that connection state has progressed past Demand Active before dereferencing cache fields.
Attack Vector
Exploitation requires a victim to connect to an attacker-controlled or compromised RDP server using a FreeRDP client built with Bitmap Cache V3 enabled. The server injects a crafted Cache Bitmap V3 order with the CBR3_DO_NOT_CACHE flag during the pre-Demand Active phase. The client parses the order, dereferences the uninitialized cache pointer, and terminates. The attack vector is network-based and requires user interaction to initiate the RDP session.
No verified public proof-of-concept code is available. Refer to the GitHub Security Advisory GHSA-cq4m-gwc5-w8rc for upstream technical details.
Detection Methods for CVE-2026-109939
Indicators of Compromise
- Unexpected FreeRDP client process crashes shortly after initiating an outbound RDP session
- Crash dumps or core files referencing update_read_cache_bitmap_v3_order or libfreerdp/core/orders.c
- Outbound RDP connections (TCP/3389) to untrusted or newly observed destinations preceding client termination
Detection Strategies
- Inventory FreeRDP binaries across endpoints and flag versions in the 3.27.1 to 3.31.x range
- Monitor command-line arguments for FreeRDP invocations containing /cache:codec:rfx, /cache:codec:nsc, or /cache:codec:jpeg
- Correlate RDP client crash events with recent outbound connections to non-corporate RDP endpoints
Monitoring Recommendations
- Alert on repeated FreeRDP process termination events on the same host within a short window
- Track outbound RDP sessions to external IP ranges and newly registered domains
- Collect application crash telemetry and feed stack traces into a central data lake for correlation
How to Mitigate CVE-2026-109939
Immediate Actions Required
- Upgrade FreeRDP to version 3.32.0 or later across all workstations, jump hosts, and container images
- Audit scripts, shortcuts, and configuration management policies that pass /cache:codec: flags to FreeRDP
- Restrict outbound RDP connectivity from end-user systems to approved internal destinations only
Patch Information
The FreeRDP maintainers fixed the issue in version 3.32.0. The upstream advisory is published as GitHub Security Advisory GHSA-cq4m-gwc5-w8rc, with additional context in the VulnCheck Advisory for FreeRDP. Rebuild downstream packages and container images against the patched library.
Workarounds
- Avoid enabling Bitmap Cache V3 by removing /cache:codec:rfx, /cache:codec:nsc, and /cache:codec:jpeg from FreeRDP invocations
- Connect only to trusted RDP servers under administrative control until patching is complete
- Enforce outbound RDP egress filtering at the firewall to block connections to unverified hosts
# Remove Bitmap Cache V3 flags from FreeRDP invocations
# Vulnerable example:
# xfreerdp /v:server.example.com /cache:codec:rfx
# Safer invocation until patched version 3.32.0 is deployed:
xfreerdp /v:server.example.com
# Verify installed FreeRDP version
xfreerdp --version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

