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 package | Versions | Reported by |
|---|---|---|
| FreeRDP FreeRDP | < 3.27.0, before 3.27.0 | CVE List, NVD |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-9gxm-3mf5-f5cx | exploit, mitigation, vendor-advisory | |
| https://github.com/FreeRDP/FreeRDP/pull/12873 | issue-tracking, patch | |
| https://github.com/FreeRDP/FreeRDP/commit/9f2da52c2341cc14a96ad12e69c5b83d0bcd8b5a | patch | |
| https://github.com/FreeRDP/FreeRDP/releases/tag/3.27.0 | release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55194 changed 2026-08-27 | CVE Terms of Use |
| NVD | CVE-2026-55194 changed 2026-10-26 | Public domain |