CVE-2026-55194
JSON

8.7high

FreeRDPHeap-buffer-overflow write in TS Gateway RPC RESPONSE reassembly due to alloc_hint capacity mismatch

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.27.0, rpc_client_recv_fragment in libfreerdp/core/gateway/rpc_client.c ensures the response reassembly stream capacity using only the server-declared alloc_hint rather than the actual StubLength about to be written. A malicious TS Gateway can send a PTYPE_RESPONSE with a small alloc_hint and a much larger frag_length, causing Stream_Write to copy attacker-controlled stub data beyond the 4096-byte pdu->s buffer. This can crash the client and may permit code execution through heap corruption. This issue is fixed in version 3.27.0.

Affected

Product or packageVersionsReported by
FreeRDP FreeRDP< 3.27.0, before 3.27.0CVE List, NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-122

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.27.0, rpc_client_recv_fragment in libfreerdp/core/gateway/rpc_client.c ensures the response reassembly stream capacity using only the server-declared alloc_hint rather than the actual StubLength about to be written. A malicious TS Gateway can send a PTYPE_RESPONSE with a small alloc_hint and a much larger frag_length, causing Stream_Write to copy attacker-controlled stub data beyond the 4096-byte pdu->s buffer. This can crash the client and may permit code execution through heap corruption. This issue is fixed in version 3.27.0.

NVD (es)

FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto. Antes de la versión 3.27.0, rpc_client_recv_fragment en libfreerdp/core/gateway/rpc_client.c asegura la capacidad del flujo de reensamblaje de la respuesta utilizando solo el alloc_hint declarado por el servidor en lugar del StubLength real que está a punto de escribirse. Una puerta de enlace TS maliciosa puede enviar un PTYPE_RESPONSE con un alloc_hint pequeño y un frag_length mucho mayor, haciendo que Stream_Write copie datos stub controlados por el atacante más allá del búfer pdu -> s de 4096 bytes. Esto puede bloquear al cliente y puede permitir la ejecución de código a través de la corrupción de la pila. Este problema se solucionó en la versión 3.27.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-55194 changed 2026-08-27CVE Terms of Use
NVDCVE-2026-55194 changed 2026-10-26Public domain