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

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.06%, higher than 64% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-26T14:08:47.535Z
- Modified: 2026-11-08T14:02:45.056Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: before 3.26.0 (not affected: 3.26.0)
- freerdp: no versions given (not affected: from 2:3.10.3-12.el10_2.6 before *)

## Every score

- VulnCheck: CVSS:4.0 8.6 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`
- VulnCheck: 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`
- redhat-SADP: 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`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff> (exploit, mitigation, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/pull/12713> (issue-tracking, patch)
- <https://github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae> (patch)
- <https://www.vulncheck.com/advisories/freerdp-heap-buffer-overflow-in-gdi-cachetosurface-via-rectangle-validation-bypass> (third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-40033> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2481473> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json>
- <https://access.redhat.com/errata/RHSA-2026:46393> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36203> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-40033](https://www.cve.org/CVERecord?id=CVE-2026-40033), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-40033](https://nvd.nist.gov/vuln/detail/CVE-2026-40033), Public domain, modified 2026-07-27

---

Page: https://cve.day/CVE-2026-40033 · Whole record: https://cve.day/CVE-2026-40033.json · Rebuilt by cve.day 2026-11-25T22:59:22.322Z
