Skip to main content

FreeRDP CVE-2026-125394

| EUVDEUVD-2026-120557 MEDIUM
Use After Free (CWE-416)
2026-11-10 disclosure@vulncheck.com GHSA-wc3j-h7qp-27j9
5.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim connects client to malicious RDP server
  2. Delivery
    Server sends CACHE_BRUSH then cached PATBLT
  3. Exploit
    Server resends CACHE_BRUSH freeing brush entry
  4. Execution
    Client reads freed heap via stale PATBLT
  5. Impact
    Heap data disclosed on screen or client crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special client configuration is required: CACHE_BRUSH is unconditionally accepted (check_secondary_order_supported returns TRUE for ORDER_TYPE_CACHE_BRUSH) and PATBLT is in the default order support set, so exploitation works against default configurations of every FreeRDP 3.x client built on libfreerdp3 (xfreerdp, sdl-freerdp, wlfreerdp, Remmina, GNOME Connections) at versions <=3.32.2, with no command-line flags or optional channels needed. The limiting factor is the threat model and reach: the attacker must control or compromise the RDP server, the victim must initiate a connection to it (UI:P), and the primitive is a read-only use-after-free (heap disclosure or crash) with no write found, so it does not by itself yield code execution.

Impact

This is a genuine but moderate-priority issue, consistent with its 5.3 (medium) CVSS 4.0 score and the vendor's 'this_month' decision label - real work to schedule, not an emergency. The 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L) is internally coherent with the mechanism: a malicious or compromised RDP server reaches the client over the network with low complexity and no attacker-side authentication, but the victim must first connect to that server (UI:P), and impact is capped at a heap read - low confidentiality (data disclosure) and low availability (crash), with no integrity impact. The GHSA advisory contains a full, author-confirmed proof of concept (validated under AddressSanitizer by feeding raw wire bytes through update_recv_order), so working trigger code is public; it is not, however, listed in CISA KEV and no EPSS score is provided in the input, so there is no evidence of active or widespread exploitation. The decisive limiter is the threat model: this is not a server-side RCE against listening clients but a malicious-server-to-client read-only UAF, so risk is proportional to how often users connect to untrusted or attacker-controlled RDP endpoints. The author explicitly found only a read primitive, not a write, which bounds this below code-execution territory - though the leaked heap contents could aid a chained exploit.

Exploit ScenarioDerived

A victim connects an affected FreeRDP 3.x client (xfreerdp, Remmina, GNOME Connections, wlfreerdp, etc.) to an attacker-controlled or compromised RDP server. Once the session is active, the server emits four default-supported drawing orders - CACHE_BRUSH into a slot, a cached PATBLT, a second CACHE_BRUSH that frees the slot, then a stale PATBLT - causing the client to read and render freed heap memory, leaking heap contents to screen or crashing. A complete proof-of-concept with wire bytes is published in the GHSA advisory and author-confirmed under ASAN.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Heap use-after-free in FreeRDP 3.x clients through 3.32.2 lets a malicious or compromised RDP server make the connecting client read freed heap memory: the server resends CACHE_BRUSH into an already-occupied brush cache slot (freeing the previous entry) and then issues a PATBLT, MEM3BLT or POLYGON_CB order, so the client paints up to 8x8xbpp bytes of stale heap content onto the screen or crashes. The flaw is rated 5.3 (medium) and needs no non-default options - brush caching and PATBLT are accepted by default in xfreerdp, sdl-freerdp, wlfreedp, Remmina, GNOME Connections and anything else built on libfreerdp3. No CISA KEV listing or confirmed active exploitation has been reported, but the vendor advisory ships a public, ASan-verified proof-of-concept harness built from raw order bytes, so reproduction is straightforward for anyone who can stand up an RDP server.

RemediationAI

Upgrade to FreeRDP 3.33.0 or later, which contains the fix commit ffc6b976e3589b768e8e279bc61dfb7b5896e832; the release is at https://github.com/FreeRDP/FreeRDP/releases/tag/3.33.0 and full details are in https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-fw6x-h8gw-778w. Because check_secondary_order_supported() returns TRUE unconditionally for ORDER_TYPE_CACHE_BRUSH and PATBLT is in the default order support set, there is no client-side option or channel toggle that disables the vulnerable code path - per the advisory the orders are accepted with no command-line flags and no optional channels, so updating the client is the complete fix and avoiding connections to untrusted RDP servers is the only meaningful interim reduction. Distributions shipping libfreerdp3, and applications that bundle it (Remmina, GNOME Connections), need the rebuilt library rather than only an application update. For downstream maintainers who cannot take the release immediately, the advisory's suggested code changes are: save and restore brush->data and brush->bpp around the callback in update_gdi_patblt(), update_gdi_polygon_cb() and update_gdi_mem3blt() (or copy the cache entry into a local 8x8 buffer instead of aliasing it), reset brush->data to brush->p8x8 and brush->bpp to 1 in update_read_brush() whenever the style is not CACHED_BRUSH, and make gdi_patblt()/gdi_mem3blt() bail out on GDI_BS_PATTERN with a NULL brush->data while sanity-checking brush->bpp against the data source.

Affected VersionsENISA

FreeRDP 0 <3.33.0

Affected Packages

euvd freerdp fix: 3.33.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The bug sits in FreeRDP's handling of RDP drawing orders. Secondary orders such as CACHE_BRUSH populate a brush cache whose entries are heap allocations; primary orders such as PATBLT, MEM3BLT and POLYGON_CB reference a cached brush via CACHED_BRUSH in the style field. Those orders are decoded into a persistent rdpPrimaryUpdate structure, and update_read_brush() only overwrites the fields whose presence flags are set, so brush->data and brush->bpp retain values from earlier orders. update_gdi_patblt(), update_gdi_polygon_cb() and update_gdi_mem3blt() store a raw pointer into the cache entry (via brush_cache_get) and restore only brush->style afterwards, leaving the data pointer dangling. brush_cache_put() free()s the old entry when the same slot is rewritten, and gdi_patblt() subsequently reads 8*8*bpp bytes through the stale pointer in freerdp_image_copy_no_overlap. This is CWE-416 (use-after-free) and also matches CWE-825 (expired pointer dereference); the reporter found only a read primitive, no write, so the direct impact is heap disclosure or a client crash. The upstream fix (commit ffc6b976) saves brush->data across the callback in all three order handlers and restores it, and the advisory additionally recommends resetting brush->data/brush->bpp to the inline p8x8 buffer when the parsed style is not CACHED_BRUSH and adding NULL/bpp sanity checks in gdi_patblt()/gdi_mem3blt().

Know when Freerdp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

A malicious server reaches the client over the network with low complexity and no auth, but the user must initiate the connection (UI:R); the read-only UAF yields low confidentiality and availability impact and no integrity impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 01:16 EUVD
CVE Published
Nov 10, 2026 - 00:17 cve.org
MEDIUM 5.3

DescriptionCVE.org

FreeRDP before 3.33.0 contains a heap use-after-free vulnerability in update_gdi_patblt(), update_gdi_polygon_cb() and update_gdi_mem3blt() that retain stale brush cache pointers. A malicious RDP server can resend CACHE_BRUSH to the same slot then send PATBLT, causing clients to read freed heap memory, disclosing data or crashing.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
FreeRDP/libfreerdp3 is the default RDP client across most Linux desktops and remote-access tools
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-25997 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_clipboard_format_equal before 3.23.0. Clipboard format comparison uses freed memory. Fifth

CVE-2026-25953 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Surface-to-window update triggers memory corrupti

CVE-2026-25952 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_SetWindowMinMaxInfo before version 3.23.0. X11 client window management triggers memory cor

CVE-2026-25959 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_cliprdr_provide_data clipboard handling before 3.23.0. Clipboard data exchange triggers mem

CVE-2026-22857 CRITICAL POC
9.8 Jan 14

FreeRDP IRP thread handler has a use-after-free where the IRP is freed by Complete() then accessed on the error path. Fi

CVE-2026-22854 CRITICAL POC
9.8 Jan 14

FreeRDP drive read heap overflow when server-controlled read length exceeds IRP output buffer. Fixed in 3.20.1. PoC avai

CVE-2026-22852 CRITICAL POC
9.8 Jan 14

FreeRDP client before 3.20.1 has a heap buffer overflow in AUDIN format processing. A malicious RDP server can corrupt m

CVE-2026-25955 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Different code path from CVE-2026-25953. PoC and

CVE-2024-32041 CRITICAL POC
9.8 Apr 22

FreeRDP is a free implementation of the Remote Desktop Protocol. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2023-40574 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40569 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40567 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy