cve.bz

CVE-2026-40033 freerdp freerdp: Heap-based Buffer Overflow

8.7 highExploit referenceEPSS 1.4%

High (8.7) in freerdp freerdp. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40033 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40033?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40033?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40033 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
FreeRDPbefore 3.26.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12freerdp2no fix listedDEBIAN-CVE-2026-40033
Debian13freerdp3no fix listedDEBIAN-CVE-2026-40033
Debian14freerdp33.26.0+dfsg-1DEBIAN-CVE-2026-40033
Ubuntu16.04:LTS, 18.04:LTSfreerdpno fix listedUBUNTU-CVE-2026-40033
Ubuntu22.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS and 1 morefreerdp2no fix listedUBUNTU-CVE-2026-40033
Ubuntu24.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-40033 USN-8561-1
Ubuntu25.10freerdp3no fix listedUBUNTU-CVE-2026-40033
Ubuntu26.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.26.04.1UBUNTU-CVE-2026-40033 USN-8561-1
Red Hatenterprise_linux:10.2freerdp, libwinpr, freerdp-libs and 8 more2:3.10.3-12.el10_2.6RHSA-2026:36203
Red Hatenterprise_linux_eus:10.0freerdp, libwinpr, freerdp-libs and 8 more2:3.10.3-3.el10_0.9RHSA-2026:46393
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7freerdp3.10.3-150700.3.17.1SUSE-SU-2026:3562-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0freerdp3.26.0-160000.1.1SUSE-SU-2026:22194-1
openSUSELeap 16.0freerdp3.26.0-160000.1.1openSUSE-SU-2026:21116-1
openSUSETumbleweedfreerdp3.26.0-3.1openSUSE-SU-2026:10948-1
AlmaLinux10freerdp, libwinpr, freerdp-libs and 3 more2:3.10.3-12.el10_2.6ALSA-2026:36203
Rocky Linux10freerdp2:3.10.3-12.el10_2.6RLSA-2026:36203

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in FreeRDP could allow a malicious Remote Desktop server to run unauthorized code or crash the connecting user's system. Red Hat users are only at risk if they use the FreeRDP client to connect to an untrusted or compromised server.

Red Hat's mitigation

To mitigate this issue, users should avoid connecting to untrusted or unknown Remote Desktop Protocol (RDP) servers. Restricting FreeRDP client usage to only known and trusted RDP servers can reduce the risk of exploitation.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10freerdp-2:3.10.3-12.el10_2.6Fixed 2026-07-07RHSA-2026:36203
Red Hat Enterprise Linux 10.0 Extended Update Supportfreerdp-2:3.10.3-3.el10_0.9Fixed 2026-07-27RHSA-2026:46393
Red Hat Enterprise Linux 6freerdpOut of support scope
Red Hat Enterprise Linux 7freerdpNot affected
Red Hat Enterprise Linux 8freerdpNot affected
Red Hat Enterprise Linux 9freerdpWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40033.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON