Read the docs

Memory leak in FreeRDP RDPEWA client CBOR request decoder

Priority LOW 39CWE-401Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · GHSA-p5wf-25qm-3x6p. Fix status from GitHub. Impact type from CWE-401.

Summary

FreeRDP up to and including 3.33.0 is affected. The RDPEWA client CBOR decoder overwrites a request buffer without freeing the previous one when a map repeats the request key (CWE-401). A malicious or compromised RDP server can send repeated messages to a client with WebAuthn redirection enabled, growing memory use until the client becomes unavailable. The channel is disabled by default and needs no authentication beyond connecting to the server.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

Description from the GitHub advisory

### Summary `rdpewa_cbor_decode_request` allocates a new buffer for every `request` key in the server-supplied CBOR map and overwrites `out->request` without freeing the previous value. `rdpewa_on_data_received` passes server-provided WebAuthn (RDPEWA) dynamic virtual channel bytes to the decoder and frees only the final `request.request` buffer, so every earlier buffer from a map with repeated `request` keys is leaked. ### Details - `channels/rdpewa/client/rdpewa_cbor.c:114-128` (`rdpewa_cbor_decode_request`) - `channels/rdpewa/client/rdpewa_main.c:95-112, 208` (`rdpewa_on_data_received`) ### Proof of concept 1. Check out FreeRDP tag `3.33.0` and build WinPR with ASan; compile the unmodified `channels/rdpewa/client/rdpewa_cbor.c` against libcbor. 2. Call `rdpewa_cbor_decode_request` 64 times on a CBOR map containing `command` 8 and either one or two 1 MiB `request` byte strings, freeing `out.request` after each call as the channel callback does: ```c const unsigned char command[] = { 0x67, 'c','o','m','m','a','n','d', 0x08 }; const unsigned char request_key[] = { 0x67, 'r','e','q','u','e','s','t', 0x5a }; data[n++] = duplicate ? 0xa3 : 0xa2; /* command, request_key + 4-byte length + payload 'A', and if duplicate a second request_key + payload 'B' */ for (size_t i = 0; i < iterations; i++) { RDPEWA_REQUEST out = { 0 }; rdpewa_cbor_decode_request(data, length, &out); if (out.request) free(out.request); } ``` 3. Confirmed output: ```text single: 64 allocations, 64 frees, 0 unreachable bytes, peak RSS 183,926,784 bytes duplicate: 128 allocations, 64 frees, 67,108,864 unreachable bytes, peak RSS 341,377,024 bytes ``` ### Impact A malicious or compromised RDP server can send repeated RDPEWA messages with duplicate `request` keys to a FreeRDP client that has WebAuthn redirection enabled, growing client memory usage until the client becomes unavailable. No authentication beyond the client connecting to the server is required. The RDPEWA channel is disabled by default and requires libcbor and libfido2 at build time. No code execution or credential disclosure is claimed.

Why it matters now

Fix Fixed FreeRDP (c): 3.34.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—FreeRDP (c)<=3.33.03.34.0Patch availableGHSA-p5wf-25qm-3x6p
  • FreeRDP (c) Vendor— Affected <=3.33.0 Fixed in 3.34.0 Patch available GHSA-p5wf-25qm-3x6p

Remediation

Upgrade FreeRDP to 3.34.0, the release that fixes this flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-12-03

  • Fix · GHSA-p5wf-25qm-3x6p FreeRDP (c) Fixed in 3.34.0 Advisory →

Timeline

  1. 2026-12-03 Threatist record created from GHSA-p5wf-25qm-3x6p

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences