CVE-2026-137460 in FreeRDPinfo

Summary

by MITRE • 11/26/2026

FreeRDP from 3.10.0 before 3.33.0 contains an invalid free vulnerability in rdg.c because the websocket context pointer shares a union with chunked transfer-encoding decoder state. A malicious RD Gateway answering the data channel with chunked encoding can control the overwritten pointer via chunk sizes, causing rdg_free to free an attacker-influenced value and crash the client.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in FreeRDP versions prior to 3.33.0 represents a critical memory management flaw located within the Remote Desktop Gateway (RDG) implementation module, specifically in the file rdg.c. This issue stems from an improper handling of union data structures that share memory space between the websocket context pointer and the internal state machine for chunked transfer-encoding decoding. In C programming, unions allow different variables to occupy the same memory location, which is often used for efficient type-punning or state management. However, in this specific implementation, the design fails to maintain strict isolation between the control flow of the HTTP chunking parser and the lifecycle management of the websocket context object. This architectural oversight creates a scenario where data intended solely for parsing network payloads can inadvertently overwrite critical pointers governing memory deallocation routines.

The technical root cause is an invalid free vulnerability triggered by malformed input from a malicious RD Gateway server. When FreeRDP establishes a connection to an RD Gateway, it negotiates the transport protocol and may encounter responses that utilize HTTP chunked transfer encoding for data channels. The client-side parser processes these chunks sequentially, updating internal state variables within the union structure. Because the websocket context pointer shares this memory space with the decoder state, specific sequences of chunk sizes crafted by an attacker can overwrite the pointer value stored in the union. Instead of pointing to a valid, allocated object on the heap or stack, the pointer is manipulated to reference arbitrary memory addresses determined by the attacker-controlled chunk size values.

The operational impact of this vulnerability is severe, primarily manifesting as a denial-of-service condition through application crash. When the FreeRDP client eventually attempts to clean up resources associated with the websocket connection, it invokes the rdg_free function. This routine expects the context pointer to be valid and points to properly allocated memory structures. However, due to the prior overwrite, the function receives an attacker-influenced value. Attempting to free this invalid address results in a segmentation fault or general protection fault, causing the FreeRDP client process to terminate abruptly. While the primary impact is stability-related, such pointer corruption can potentially be leveraged for further exploitation if the overwritten memory region allows for controlled execution flow redirection, although the immediate and guaranteed effect is service disruption for users connecting through compromised gateways.

This vulnerability aligns with Common Weakness Enumeration (CWE) categories including CWE-416: Use After Free, as it involves manipulating pointers that lead to invalid deallocation operations, and CWE-94: Improper Control of Generation of Code ('Code Injection'), specifically regarding the manipulation of memory structures through input data. In terms of the MITRE ATT&CK framework, this flaw is relevant to techniques involving exploitation for denial-of-service or potential initial access if combined with other vulnerabilities in a broader attack chain against remote desktop infrastructure. The vulnerability highlights the risks associated with complex union-based state machines in network protocol parsers where strict boundary checks and pointer validation are not enforced before memory operations occur.

Mitigation strategies focus on immediate software updates and defensive coding practices. The primary remediation is to upgrade FreeRDP to version 3.33.0 or later, where the developers have addressed this union overlap issue by ensuring proper separation of concerns between parsing logic and context management. For environments unable to update immediately, deploying network-level protections such as deep packet inspection firewalls can help identify and block malformed HTTP chunked responses originating from untrusted RD Gateway servers. Additionally, security teams should monitor for abnormal termination events in FreeRDP client logs which may indicate exploitation attempts. Future development of similar protocol parsers must enforce strict type safety and avoid sharing memory between control pointers and data buffers without rigorous validation mechanisms to prevent pointer corruption via crafted network inputs.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00490

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!