CVE-2026-23532: FreeRDP heap buffer overflow in gdi_SurfaceToSurface

CVE-2026-23532 · Severity: critical · CVSS 9.8 · Published 2026-01-19

FreeRDP is an open-source tool used to connect to remote computers via the Remote Desktop Protocol. A security flaw in the client software allows a malicious server to trigger a memory overflow on the user's computer. This could lead to the application crashing or, in more severe cases, allow the attacker to execute unauthorized code on the user's system.

Technologies: FreeRDP. Vendors: FreeRDP.

Quick answers

Is CVE-2026-23532 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-23532 being exploited in the wild.
How severe is CVE-2026-23532?
Critical severity, with a CVSS score of 9.8, published 19 January 2026.
Which products and versions are affected?
FreeRDP < 3.21.0.
Is there a fix for CVE-2026-23532?
A patch was published on 2026-01-19. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-23532 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-23532?
Check whether you run FreeRDP at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A heap-based buffer overflow exists in FreeRDP's `gdi_SurfaceToSurface` function within `libfreerdp/gdi/gfx.c`. The vulnerability is caused by a logic error where the destination rectangle is clamped using `MAX_UINT16`, but the subsequent `freerdp_image_copy` operation uses the original, unclamped width and height values. An attacker controlling a malicious RDP server can send a specially crafted SurfaceToSurface PDU that exceeds surface boundaries, leading to an out-of-bounds write. This can result in a denial of service (crash) or potential heap corruption leading to arbitrary code execution. The issue is addressed in version 3.21.0.

Affected products

  • FreeRDP FreeRDP < 3.21.0

Timeline

  • 2026-01-19: advisory
  • 2026-01-19: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.