CVE-2026-57158 FreeRDP planar_decompress_plane_rle_only: heap OOB read — incomplete fix for CVE-2026-23530

Medium 5.1 Published Updated

A malicious RDP server can trigger a heap out-of-bounds read in FreeRDP clients, potentially leaking memory or causing crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-57158?

CVE-2026-57158 is a medium-severity memory corruption vulnerability in Freerdp Freerdp, published on 10 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

FreeRDP is a free implementation of the Remote Desktop Protocol. From 3.21.0 before 3.28.0, FreeRDP clients using the GFX pipeline contain an incomplete fix for CVE-2026-23530 in planar_decompress_plane_rle_only in libfreerdp/codec/planar.c, allowing a malicious RDP server to send a truncated RDPGFX_CMDID_WIRETOSURFACE_1 planar payload that reads one byte past the input buffer. This issue is fixed in version 3.28.0.

Weakness: CWE-125

Which versions are affected by CVE-2026-57158?

It affects 1 product.

Products include Freerdp Freerdp.

How do I fix CVE-2026-57158?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-57158 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-57158 exists.

All Freerdp Freerdp vulnerabilities

Sources

Also known as CLSA-2026-1785561679, DEBIAN-CVE-2026-57158, GHSA-mp3f-59pg-c5pp, UBUNTU-CVE-2026-57158.

Is CVE-2026-57158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free