Vulnerability · Published May 26, 2026 · Assigned by VulnCheck

CVE-2026-40033FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass

High 8.8

In plain English

A high-severity heap buffer overflow in FreeRDP from FreeRDP. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)1.4%top 28.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

FreeRDP before 3.26.0 contains a heap-buffer-overflow vulnerability in gdi_CacheToSurface that allows remote attackers to write out-of-bounds heap memory. The vulnerability occurs because rectangle validation clamps coordinates to UINT16_MAX but performs copy operations using unclamped cache entry dimensions, enabling malicious RDP servers to trigger large out-of-bounds writes and potentially achieve remote code execution or client crash.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10freerdp2:3.10.3-12.el10_2.6ALSA-2026:36203
AlmaLinux:10freerdp-devel2:3.10.3-12.el10_2.6ALSA-2026:36203
AlmaLinux:10freerdp-libs2:3.10.3-12.el10_2.6ALSA-2026:36203
AlmaLinux:10freerdp-server2:3.10.3-12.el10_2.6ALSA-2026:36203
AlmaLinux:10libwinpr2:3.10.3-12.el10_2.6ALSA-2026:36203
AlmaLinux:10libwinpr-devel2:3.10.3-12.el10_2.6ALSA-2026:36203
Debian:12freerdp2no fix listedDEBIAN-CVE-2026-40033
Debian:13freerdp3no fix listedDEBIAN-CVE-2026-40033
Debian:14freerdp33.26.0+dfsg-1DEBIAN-CVE-2026-40033
Rocky Linux:10freerdp2:3.10.3-12.el10_2.6RLSA-2026:36203
Ubuntu:22.04:LTSfreerdp2no fix listedUBUNTU-CVE-2026-40033
Ubuntu:24.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-40033
Ubuntu:24.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.24.04.1USN-8561-1
Ubuntu:25.10freerdp3no fix listedUBUNTU-CVE-2026-40033
Ubuntu:26.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.26.04.1UBUNTU-CVE-2026-40033
Ubuntu:26.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.26.04.1USN-8561-1

Affected products (as reported)

VendorProductVersions
FreeRDP FreeRDP 0 – before 3.26.0

Weakness: CWE-122, CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References