CVE-2026-40033
FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass
Reported by vulncheck · Published May 26, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| freerdp-debugsource | errata.rockylinux.org | 3.10.3-12.el10 |
| libwinpr | errata.rockylinux.org | 3.10.3-12.el10 |
| freerdp-libs | Amazon Linux | 2:3.6.3-1.amzn2023.0.12 |
| freerdp-server-debuginfo | errata.rockylinux.org | 3.10.3-12.el10 |
| freerdp | errata.rockylinux.org | 3.10.3-12.el10 |
| libwinpr-devel | errata.rockylinux.org | 3.10.3-12.el10 |
| freerdp-debuginfo | errata.rockylinux.org | 3.10.3-12.el10 |
| freerdp-devel | Amazon Linux | 2:2.11.7-1.amzn2.0.12 |
| libwinpr | Amazon Linux | 2:3.6.3-1.amzn2023.0.12 |
| freerdp-server | errata.rockylinux.org | 3.10.3-12.el10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| FreeRDP | FreeRDP | 0, 3.26.0 |
| Red Hat | Red Hat Enterprise Linux 7 | |
| amazon:2023 | freerdp-libs | 0 |
| amazon:2 | freerdp-devel | 0 |
| amazon:2023 | libwinpr | 0 |
| freerdp | freerdp | 0 |
| amazon:2 | libwinpr-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| amazon:2 | freerdp | 0 |
| Red Hat | Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | |
| Red Hat | Red Hat Enterprise Linux 8 | |
| amazon:2023 | freerdp-devel | 0 |
| amazon:2023 | libwinpr-devel | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 10) | |
| FreeRDP | FreeRDP | 0, 3.26.0 |
| amazon:2 | libwinpr | 0 |
…and 6 more
Timeline
- May 11, 2026 CVE Published
- May 27, 2026 EPSS Score (30 in total, the first dated here)
- May 28, 2026 Security Advisory (6 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Jul 7, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-40033
vulnetix vdb fixes CVE-2026-40033
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40033/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GitHub Security Advisory (GHSA-p6r2-4hgm-m6ff) vendor-advisory
- issue-trackingpatch
- patch
- third-party-advisory
- https://access.redhat.com/security/cve/CVE-2026-40033 vdb
- RHBZ#2481473 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40033.json url
- https://access.redhat.com/errata/RHSA-2026:46393 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:36203 vendor-advisory
- https://github.com/FreeRDP/FreeRDP/commit/23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 fix