Vulnerability DatabaseCVE-2026-137460

CVE-2026-137460: 
Wolfi vulnerability analysis and mitigation

Overview

CVE-2026-137460 is an invalid free vulnerability in FreeRDP's RD Gateway implementation (rdg.c) that allows a malicious RD Gateway server to crash the FreeRDP client. The root cause is a union in rdg_http_encoding_context that shares storage between the websocket_context* pointer and the chunked transfer-encoding decoder state (http_encoding_chunked_context); when chunked encoding is used, the decoder overwrites the saved pointer, and rdg_free subsequently passes an attacker-influenced value to websocket_context_free. Affected versions are FreeRDP 3.10.0 through 3.32.2 (inclusive); version 3.33.0 contains the fix. The vulnerability carries a CVSS v3.1 score of 7.5 (High) and a CVSS v4.0 score of 8.7 (High) (GitHub Advisory, Feedly).

Technical details

The vulnerability is classified as CWE-843 (Access of Resource Using Incompatible Type / Type Confusion) due to the union aliasing a pointer with a numeric decoder field. Introduced in commit 4cbdd2c (FreeRDP 3.10.0), rdg_http_encoding_context stores both websocket_context* and http_encoding_chunked_context in a single union context; the chunked.nextOffset field (which holds the current chunk length received from the gateway) occupies the same memory as the websocket pointer. When the RD Gateway responds to the data channel with Transfer-Encoding: chunked, rdg_establish_data_connection initialises the chunked state and http_chuncked_read continuously updates chunked.nextOffset with gateway-supplied chunk sizes, silently overwriting the stored websocket_context*. On teardown, rdg_free calls websocket_context_free with this corrupted value, resulting in an invalid free of an attacker-controlled address and a client crash; the real websocket context is also leaked. Exploitation requires the client to connect through a gateway the attacker controls or has compromised (GitHub Advisory).

Impact

Successful exploitation causes a denial-of-service crash of the FreeRDP client process via an invalid free of an attacker-influenced memory address. There is no evidence of confidentiality or integrity impact — the CVSS scores reflect a pure availability impact. Because the vulnerability is triggered server-side (by the RD Gateway), any user connecting through a malicious or compromised gateway is affected without any action on their part, making it particularly relevant in enterprise environments where RD Gateway is used as a remote access broker (GitHub Advisory, Feedly).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires the attacker to operate or control an RD Gateway that the victim client connects to, which limits opportunistic exploitation but is realistic in man-in-the-middle or rogue-gateway scenarios. The vulnerability was disclosed on November 26, 2026, with the CVE status listed as "Awaiting Analysis" (Feedly, GitHub Advisory).

Exploitation steps

  1. Set up a malicious RD Gateway: Deploy or compromise an RD Gateway server that the target FreeRDP client will connect to (e.g., via DNS spoofing, BGP hijacking, or a rogue gateway in a network the victim trusts).
  2. Negotiate chunked transfer encoding: When the FreeRDP client initiates the RD Gateway data channel connection, respond with HTTP headers including Transfer-Encoding: chunked instead of WebSocket or identity encoding.
  3. Craft chunk sizes to overwrite the pointer: Send chunked HTTP responses where the nextOffset values (chunk sizes) are crafted to place a desired attacker-controlled value into the memory location shared with the websocket_context* pointer in the rdg_http_encoding_context union.
  4. Trigger client teardown: Close the connection or allow the session to terminate normally, causing rdg_free to be called.
  5. Achieve invalid free / crash: rdg_free calls websocket_context_free with the attacker-influenced value (derived from chunk sizes), resulting in an invalid free, crashing the FreeRDP client process (GitHub Advisory).

Indicators of compromise

  • Process: Unexpected crash or segmentation fault of the FreeRDP client process (xfreerdp, wfreerdp, or embedding applications) immediately after or during RD Gateway data channel teardown.
  • Logs: Application crash logs or core dumps referencing rdg_free, websocket_context_free, or memory corruption errors in libfreerdp/core/gateway/rdg.c.
  • Network: RD Gateway data channel responses using Transfer-Encoding: chunked from a gateway that is not the expected corporate RD Gateway (unexpected IP or certificate mismatch).
  • Memory/ASan: If built with AddressSanitizer, reports of heap-use-after-free or invalid-free originating from rdg_free → websocket_context_free call chain (GitHub Advisory).

Mitigation and workarounds

Upgrade FreeRDP to version 3.33.0 or later, which fixes the vulnerability by storing websocket_context* and http_encoding_chunked_context as separate struct members rather than in a union, ensuring rdg_free always frees the correct pointer. No configuration-based workaround is available; the only effective mitigation prior to patching is to avoid connecting through untrusted or unverified RD Gateway servers and to enforce strict certificate validation for RD Gateway connections. Organizations should prioritize patching any FreeRDP deployments in the 3.10.0–3.32.2 range, particularly those used in enterprise remote access scenarios (GitHub Advisory).

Community reactions

The vulnerability was reported by an external researcher (credited as "Mar" in the patch commit) and disclosed responsibly through GitHub's security advisory process by FreeRDP maintainer akallabeth. The advisory was rated "Moderate" severity by the FreeRDP project despite the CVSS scores indicating High severity. No significant broader media coverage or notable social media discussion has been identified at the time of disclosure (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

freerdp2

Affected

sid

freerdp3: 3.33.0+dfsg-1

Fixed

trixie

freerdp3

Affected

Ubuntu

Unknown

bionic (esm-apps)

freerdp

Unknown

bionic (esm-infra)

freerdp2

Unknown

devel

freerdp3

Unknown

focal (esm-infra)

freerdp2

Unknown

jammy

freerdp2

Unknown

noble

freerdp2

Unknown

noble (esm-apps)

freerdp2

Unknown

resolute

freerdp3

Unknown

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

freerdp.src

Affected

Source: This report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-137460HIGH8.7
  • Wolfi logoWolfi
  • freerdp-devel
NoYesNov 26, 2026
CVE-2026-137459HIGH8.7
  • Wolfi logoWolfi
  • freerdp3
NoYesNov 26, 2026
CVE-2026-137462HIGH7.1
  • Wolfi logoWolfi
  • freerdp
NoYesNov 26, 2026
CVE-2026-137458HIGH7.1
  • Wolfi logoWolfi
  • freerdp-server
NoYesNov 26, 2026
CVE-2026-137461MEDIUM6.9
  • Wolfi logoWolfi
  • freerdp2
NoYesNov 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management