CVE-2026-26955
JSON

8.8high

FreeRDP has Out-of-bounds Write

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.66% (higher than 52% 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 version 3.23.0, a malicious RDP server can trigger a heap buffer overflow in FreeRDP clients using the GDI surface pipeline (e.g., `xfreerdp`) by sending an RDPGFX ClearCodec surface command with an out-of-bounds destination rectangle. The `gdi_SurfaceCommand_ClearCodec()` handler does not call `is_within_surface()` to validate the command rectangle against the destination surface dimensions, allowing attacker-controlled `cmd->left`/`cmd->top` (and subcodec rectangle offsets) to reach image copy routines that write into `surface->data` without bounds enforcement. The OOB write corrupts an adjacent `gdiGfxSurface` struct's `codecs*` pointer with attacker-controlled pixel data, and corruption of `codecs*` is sufficient to reach an indirect function pointer call (`NSC_CONTEXT.decode` at `nsc.c:500`) on a subsequent codec command — full instruction pointer (RIP) control demonstrated in exploitability harness. Users should upgrade to version 3.23.0 to receive a patch.

Affected

Product or packageVersionsReported by
FreeRDP FreeRDP< 3.23.0, before 3.23.0CVE List, NVD
freerdpNot specified
Not affected: from 2:3.10.3-12.el10_2.2 before *, from 2:3.10.3-5.el10_1.3 before *, from 2:3.10.3-3.el10_0.3 before *, from 0:2.1.1-5.el7_9.5 before *, from 2:2.11.7-4.el8_10 before *, from 2:2.0.0-46.rc4.el8_2.8 before *
CVE List

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-787CWE-805

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 version 3.23.0, a malicious RDP server can trigger a heap buffer overflow in FreeRDP clients using the GDI surface pipeline (e.g., `xfreerdp`) by sending an RDPGFX ClearCodec surface command with an out-of-bounds destination rectangle. The `gdi_SurfaceCommand_ClearCodec()` handler does not call `is_within_surface()` to validate the command rectangle against the destination surface dimensions, allowing attacker-controlled `cmd->left`/`cmd->top` (and subcodec rectangle offsets) to reach image copy routines that write into `surface->data` without bounds enforcement. The OOB write corrupts an adjacent `gdiGfxSurface` struct's `codecs*` pointer with attacker-controlled pixel data, and corruption of `codecs*` is sufficient to reach an indirect function pointer call (`NSC_CONTEXT.decode` at `nsc.c:500`) on a subsequent codec command — full instruction pointer (RIP) control demonstrated in exploitability harness. Users should upgrade to version 3.23.0 to receive a patch.

NVD (es)

FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto. Antes de la versión 3.23.0, un servidor RDP malicioso puede desencadenar un desbordamiento de búfer de montón en clientes FreeRDP que utilizan la tubería de superficie GDI (por ejemplo, 'xfreerdp') enviando un comando de superficie RDPGFX ClearCodec con un rectángulo de destino fuera de límites. El gestor 'gdi_SurfaceCommand_ClearCodec()' no llama a 'is_within_surface()' para validar el rectángulo del comando contra las dimensiones de la superficie de destino, permitiendo que 'cmd-&gt;left'/'cmd-&gt;top' (y los desplazamientos del rectángulo del subcódec) controlados por el atacante alcancen rutinas de copia de imagen que escriben en 'surface-&gt;data' sin aplicación de límites. La escritura OOB corrompe el puntero 'codecs*' de una estructura 'gdiGfxSurface' adyacente con datos de píxeles controlados por el atacante, y la corrupción de 'codecs*' es suficiente para alcanzar una llamada a puntero de función indirecta ('NSC_CONTEXT.decode' en 'nsc.c:500') en un comando de códec subsiguiente — control total del puntero de instrucción (RIP) demostrado en el arnés de explotabilidad. Los usuarios deben actualizar a la versión 3.23.0 para recibir un parche.

References

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-mr6w-ch7c-mqqjexploit, mitigation, patch, vendor-advisory
https://github.com/FreeRDP/FreeRDP/commit/7d8fdce2d0ef337cb86cb37fc0c436c905e04d77patch
https://access.redhat.com/security/cve/CVE-2026-26955vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2443132issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26955.json
https://access.redhat.com/errata/RHSA-2026:7292vendor-advisory
https://access.redhat.com/errata/RHSA-2026:5936vendor-advisory
https://access.redhat.com/errata/RHSA-2026:5939vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19033vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6005vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6712vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6616vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-26955 changed 2026-07-15CVE Terms of Use
NVDCVE-2026-26955 changed 2026-07-15Public domain