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

2 affected components
FreeRDP freerdp<3.26.0
FreeRDP freerdp<3.26.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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
DescriptionSeverityWeaknessAffected Software

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