CVE-2026-44421

FreeRDP RDPGFX CacheToSurface heap-buffer-overflow via clamped-rectangle validation bypass

Published May 29, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.26.0, a malicious RDP server can trigger a heap-buffer-overflow write in the FreeRDP client by sending crafted RDPGFX PDUs. The bug is in gdi_CacheToSurface: it validates a destination rectangle that is clamped to UINT16_MAX, but then performs the copy using the original cacheEntry->width/height. This can cause a large out-of-bounds heap write and may lead to client crashes or code execution. This bug is reachable from a malicious RDP server, but only when the client has RDPGFX enabled. This vulnerability is fixed in 3.26.0.

Analysis

AI-generated

Technical impact

A heap‑buffer‑overflow occurs in the FreeRDP client’s gdi_CacheToSurface function when handling RDPGFX packets. The function clamps a destination rectangle to a 16‑bit maximum but copies data using the original, potentially oversized, width and height values. This flaw can cause a large out‑of‑bounds write, leading to client crashes or execution of arbitrary code on the client machine. The weakness is a classic buffer overflow (CWE‑122) and an out‑of‑bounds write (CWE‑787).

Affected Systems

The vulnerability affects the FreeRDP client prior to version 3.26.0. Clients that have RDPGFX enabled are susceptible; any deployment of FreeRDP 3.25.x or earlier running RDPGFX is at risk.

Risk and Exploitability

The CVSS score of 8.8 reflects a high severity impact. The EPSS score indicates a very low probability of exploitation (less than 1%), and the issue is not listed in the CISA KEV catalog, indicating no confirmed exploitation yet. A malicious RDP server can trigger the flaw remotely; the attacker only needs to send crafted RDPGFX PDUs to an affected client with RDPGFX enabled. The attack vector is server‑initiated remote exploitation and requires no special client privileges beyond normal usage. This vulnerability causes an out‑of‑bounds heap write, a type of buffer overflow (CWE‑787). Given the high severity and potential for code execution, the risk to exposed or internal networks remains significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to FreeRDP 3.26.0 or later to apply the buffer‑overflow fix.
  • If RDPGFX functionality is not required, disable it on all clients to eliminate the attack surface.
  • Block or limit RDP traffic from untrusted servers to mitigate exploitation risk.

Generated by OpenCVE AI on August 12, 2026 at 02:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8561-1 FreeRDP vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Freerdp
Freerdp freerdp
Vendors & Products Freerdp
Freerdp freerdp
Type Values Removed Values Added
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.26.0, a malicious RDP server can trigger a heap-buffer-overflow write in the FreeRDP client by sending crafted RDPGFX PDUs. The bug is in gdi_CacheToSurface: it validates a destination rectangle that is clamped to UINT16_MAX, but then performs the copy using the original cacheEntry->width/height. This can cause a large out-of-bounds heap write and may lead to client crashes or code execution. This bug is reachable from a malicious RDP server, but only when the client has RDPGFX enabled. This vulnerability is fixed in 3.26.0.
Title FreeRDP RDPGFX CacheToSurface heap-buffer-overflow via clamped-rectangle validation bypass
Weaknesses CWE-122
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 27, 2026, 12:05 PM
Reserved
May 6, 2026, 2:40 PM
Status
Modified
Published
May 29, 2026, 8:16 PM
Modified
Jul 27, 2026, 1:18 PM