CVE-2026-23532

FreeRDP has heap-buffer-overflow in gdi_SurfaceToSurface

Published Jan 19, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
Description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.21.0, a client-side heap buffer overflow occurs in the FreeRDP client’s `gdi_SurfaceToSurface` path due to a mismatch between destination rectangle clamping and the actual copy size. A malicious server can trigger a client‑side heap buffer overflow, causing a crash (DoS) and potential heap corruption with code‑execution risk depending on allocator behavior and surrounding heap layout. Version 3.21.0 contains a patch for the issue.

Analysis

AI-generated

Technical impact

A heap-buffer-overflow occurs in the FreeRDP client’s gdi_SurfaceToSurface path when the destination rectangle clamping does not match the actual copy size. A malicious RDP server can send crafted data that triggers an overflow on the client side, leading to a crash that provides denial‑of‑service. Depending on the memory allocator and surrounding heap layout, the overflow may also result in heap corruption and the opportunity to execute arbitrary code on the client. The weakness is classified as CWE‑122.

Affected Systems

All FreeRDP clients prior to version 3.21.0 are affected. The issue manifests in the free implementation of the Remote Desktop Protocol provided by the vendor FreeRDP.

Risk and Exploitability

The CVSS score of 7.7 rates the vulnerability as high severity. The EPSS score is below 1 %, indicating that, at the time of assessment, exploitation is thought to be rare. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a connection to a malicious RDP server and relies on the client performing an unsafe memory copy. If an attacker can control heap layout, the risk of remote code execution rises, whereas in typical deployments the primary risk is denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply FreeRDP 3.21.0 or later to fix the heap-buffer-overflow in gdi_SurfaceToSurface.
  • If an upgrade cannot occur immediately, restrict incoming RDP connections to trusted hosts and monitor the client for abnormal crashes or memory usage patterns.
  • Deploy an intermediate firewall or proxy that filters RDP traffic, allowing only known, authenticated servers and blocking attempts to send malformed paint operations that could trigger the overflow.

Generated by OpenCVE AI on April 18, 2026 at 15:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8105-1 FreeRDP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freerdp
Freerdp freerdp
Vendors & Products Freerdp
Freerdp freerdp
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H'}

threat_severity

Important

Type Values Removed Values Added
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.21.0, a client-side heap buffer overflow occurs in the FreeRDP client’s `gdi_SurfaceToSurface` path due to a mismatch between destination rectangle clamping and the actual copy size. A malicious server can trigger a client‑side heap buffer overflow, causing a crash (DoS) and potential heap corruption with code‑execution risk depending on allocator behavior and surrounding heap layout. Version 3.21.0 contains a patch for the issue.
Title FreeRDP has heap-buffer-overflow in gdi_SurfaceToSurface
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 1:18 AM
Reserved
Jan 13, 2026, 6:22 PM
Status
Modified
Published
Jan 19, 2026, 5:15 PM
Modified
Jul 15, 2026, 2:18 AM
Severity
Important
Public date
Jan 19, 2026, 5:03 PM