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

Published May 26, 2026
·
Updated

FreeRDP before 3.26.0 contains a heap-buffer-overflow vulnerability in gdiCacheToSurface that allows remote attackers to write out-of-bounds heap memory. The vulnerability occurs because rectangle validation clamps coordinates to UINT16MAX 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 Software

16 affected componentsFixes available
FreeRDP freerdp<3.26.0
FreeRDP freerdp<3.26.0
ubuntu/freerdp*
ubuntu/freerdp2*
ubuntu/freerdp*
ubuntu/freerdp2*
ubuntu/freerdp2*
ubuntu/freerdp3<3.30.0+dfsg-0ubuntu0.24.04.1
3.30.0+dfsg-0ubuntu0.24.04.1
ubuntu/freerdp2*
ubuntu/freerdp3*
ubuntu/freerdp3<3.30.0+dfsg-0ubuntu0.26.04.1
3.30.0+dfsg-0ubuntu0.26.04.1
debian/freerdp2<2.11.7+dfsg1-6~deb12u2
2.11.7+dfsg1-6~deb12u2
debian/freerdp3*
debian/freerdp3<3.26.0+dfsg-1
3.26.0+dfsg-1
debian/freerdp2<=2.11.7+dfsg1-6~deb12u1
2.11.7+dfsg1-6~deb12u2
debian/freerdp3<=3.15.0+dfsg-2.1+deb13u3
3.26.0+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.30.0+dfsg-0ubuntu0.24.04.1
  2. Upgrade

    Upgrade ubuntu/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.30.0+dfsg-0ubuntu0.26.04.1
  3. Upgrade

    Upgrade debian/freerdp2 to a version that resolves this vulnerability.

    Fixed in 2.11.7+dfsg1-6~deb12u2
  4. Upgrade

    Upgrade debian/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.26.0+dfsg-1
  5. Upgrade

    Upgrade FreeRDP to a version that resolves this vulnerability.

    Fixed in 3.26.0

Event History

May 26, 2026
Exploit Published
via CISA·12:00 AM
CVE Published
via MITRE·02:08 PM
Data Sourced
via MITRE·02:08 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Event
via NVD·03:16 PM
May 27, 2026
Data Sourced
via NVD·02:48 PM
RemedyAffected Software
Jun 30, 2026
Updated
via NVD·03:19 AM
SeverityWeakness
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-40033?

The severity of CVE-2026-40033 is rated high with a score of 8.8.

2

How do I fix CVE-2026-40033?

To fix CVE-2026-40033, update to FreeRDP version 3.26.0 or later where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-40033?

CVE-2026-40033 is a heap-buffer-overflow vulnerability.

4

Who is affected by CVE-2026-40033?

Users of FreeRDP versions prior to 3.26.0 are affected by CVE-2026-40033.

5

What can attackers achieve with CVE-2026-40033?

Attackers can exploit CVE-2026-40033 to write out-of-bounds heap memory, potentially leading to arbitrary code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203