# CVE-2026-40033: FreeRDP - Heap-buffer-overflow in gdi\_CacheToSurface via rectangle validation bypass

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.26.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-05-26 · Modified: 2026-11-08
- Aliases: UBUNTU-CVE-2026-40033, DEBIAN-CVE-2026-40033
- Record: https://cvemate.com/vulnerability/CVE-2026-40033 · JSON: https://cvemate.com/vulnerability/CVE-2026-40033/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.365%, percentile 72.808%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian freerdp2 (Debian): All versions (No fix recorded) \| \< 2.11.7+dfsg1-6~deb12u2
- debian freerdp3 (Debian): All versions (No fix recorded) \| \< 3.26.0+dfsg-1
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp3 (Ubuntu): \< 3.30.0+dfsg-0ubuntu0.24.04.1 \| All versions (No fix recorded) \| \< 3.30.0+dfsg-0ubuntu0.26.04.1
- freerdp freerdp: \< 3.26.0

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff>
- <https://github.com/FreeRDP/FreeRDP/pull/12713>
- <https://github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae>
- <https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface-via-rectangle-validation-bypass>
- <https://access.redhat.com/security/cve/CVE-2026-40033>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2481473>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json>
- <https://access.redhat.com/errata/RHSA-2026:46393>
- <https://access.redhat.com/errata/RHSA-2026:36203>
- <https://ubuntu.com/security/CVE-2026-40033>
- <https://www.cve.org/CVERecord?id=CVE-2026-40033>
- <https://github.com/FreeRDP/FreeRDP/commit/23b36cd00ebf0ccd97750fcdbc9aa2f362352da7>
- <https://ubuntu.com/security/notices/USN-8561-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-40033>

---

Data as of 2026-12-06T06:44:59.113Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
