CVE-2026-23884CWE-416

Heap-use-after-free in gdi_set_bounds

High · published January 19, 2026

CVSS v4.0
7.7
EPSS
0%
Percentile
40.7
In the wild
Unconfirmed
What it is

🚨 A crafty server can set you up for a wild ride with FreeRDP, leading to crashes and potential code execution! ⚡ Imagine a waiter who mistakenly serves a dish that's already been sent back to the kitchen — the next person who bites into it might just get a surprise! Similarly, when FreeRDP tries to access freed memory, it can result in chaos, like a kitchen mishap with dangerous outcomes. An attacker controlling a malicious server could exploit this vulnerability to trigger a client-side use-after-free, leading to a complete crash of your system. In the worst-case scenario, it may even allow the attacker to execute arbitrary code, making this not just a minor inconvenience but a serious risk to system integrity and security!

Put simply

Imagine a waiter who mistakenly serves a dish that's already been sent back to the kitchen — the next person who bites into it might just get a surprise! Similarly, when FreeRDP tries to access freed memory, it can result in chaos, like a kitchen mishap with dangerous outcomes. This vulnerability in FreeRDP occurs due to the improper handling of offscreen bitmap deletion, leaving `gdi->drawing` pointing to freed memory. When certain update packets are received, this can lead to a use-after-free condition, potentially allowing an attacker to execute code depending on the allocator's behavior and heap layout.

What to do

An attacker controlling a malicious server could exploit this vulnerability to trigger a client-side use-after-free, leading to a complete crash of your system. In the worst-case scenario, it may even allow the attacker to execute arbitrary code, making this not just a minor inconvenience but a serious risk to system integrity and security! Update your FreeRDP to version 3.21.0 or later to patch this vulnerability. Additionally, conduct a thorough review of any server configurations to ensure they don't accept potentially harmful updates from untrusted sources. You've got this! Follow these steps and keep your systems secure and running smoothly! 🛡️

The record
Technical detail
CVSS v4.0
7.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
EPSS
0.00484 · 40.7th percentile
Weakness
CWE-416 · Use After Free
Published
2026-01-19T17:20Z
EPSS history
Timeline
  • 19 JAN 17:20Z
    Heap-use-after-free in gdi_set_bounds
    cvelistv5