Skip to main content

FreeRDP CVE-2026-23532

HIGH
Heap-based Buffer Overflow (CWE-122)
2026-01-19 security-advisories@github.com
7.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Lure client to malicious RDP server
  2. Delivery
    Negotiate graphics channel
  3. Exploit
    Send oversized SurfaceToSurface copy
  4. Execution
    Overflow client heap buffer
  5. Persist
    Crash client or corrupt heap
  6. Impact
    Potential code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires the victim's FreeRDP client (any version before 3.21.0) to establish an RDP session with an attacker-controlled or compromised server, and the connection must use the graphics pipeline path that invokes gdi_SurfaceToSurface - the malicious server then sends a SurfaceToSurface operation whose copy size exceeds the clamped destination rectangle. Limiting factors: this is server-to-client (the attacker cannot trigger it against arbitrary clients without first getting them to connect to a hostile server or by intercepting an existing session), only availability impact is confirmed by the vendor vector while code execution is described as 'potential' and allocator-dependent, and clients that connect exclusively to trusted RDP servers are not realistically exposed. No additional authentication on the client side is needed once the connection is initiated (vector PR:N).

Impact

Signals are mixed and should be weighed carefully. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with VA:H and VC:N/VI:N scores 7.7 and treats only availability as impacted - i.e., it is primarily scored as a remote DoS, even though the description warns of potential code execution. The E:P (Proof of Concept) temporal flag and the 'publicly available exploit' signal confirm exploit code exists. However, EPSS is only 0.13% (33rd percentile) and the CVE is NOT in CISA KEV, indicating no confirmed active exploitation. The most important nuance the raw vector understates: this is a CLIENT-side flaw - the attacker must operate or control the RDP SERVER the victim connects to, so PR:N/UI:N overstates ease of attack. There is no drive-by mass-exploitation path; an attacker must lure or redirect a FreeRDP client to a malicious server (e.g., a rogue gateway or a man-in-the-middle). Net: a credible DoS with speculative RCE potential, meriting prompt patching for environments that connect to untrusted RDP endpoints, but not an emergency for clients that only reach known, trusted servers.

Exploit ScenarioDerived

An attacker stands up or compromises an RDP server (or performs a man-in-the-middle on an RDP session) and waits for or lures a vulnerable FreeRDP client to connect. During the graphics channel exchange, the server sends a crafted SurfaceToSurface command whose copy length exceeds the clamped destination rectangle, overflowing a heap buffer in the client. The immediate result is a client crash (DoS); with favorable heap layout and allocator behavior, the heap corruption could be steered toward code execution. Public proof-of-concept material exists, lowering the bar for reproducing the crash.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv5 – Jun 30, 2026

Denial of service and potential heap corruption in the FreeRDP client (all versions prior to 3.21.0) arises in the graphics pipeline's gdi_SurfaceToSurface path, where destination-rectangle clamping does not match the actual copy size. A malicious or compromised RDP server can drive a connected client into a heap buffer overflow, reliably crashing it and, depending on allocator state and heap layout, opening a path to code execution. Publicly available exploit code exists, but EPSS exploitation probability is low (0.13%, 33rd percentile) and the issue is not listed in CISA KEV.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 06:06 cvss changed CVSS 7.7

Server-triggered heap buffer overflow in the FreeRDP client (versions prior to 3.21.0) lets a malicious or compromised RDP server corrupt client-side heap memory through the gdi_SurfaceToSurface graphics path, where destination-rectangle clamping disagrees with the actual copy size. A connected client can be crashed (denial of service) and, depending on allocator behavior and heap layout, may face heap corruption that carries code-execution risk. Publicly available exploit code exists, though EPSS is low (0.13%, 33rd percentile) and it is not on the CISA KEV list, indicating it is not yet known to be actively exploited.

v3 Jun 30, 2026 - 06:06 cvss changed CVSS 7.7

Client-side heap buffer overflow in FreeRDP before 3.21.0 lets a malicious or compromised RDP server corrupt the connecting client's heap via the gdi_SurfaceToSurface graphics path. The flaw stems from a mismatch between destination-rectangle clamping and the actual copy size, reliably crashing the client (DoS) and posing a heap-corruption-driven code-execution risk depending on allocator state. Publicly available exploit code exists, though EPSS exploitation probability is low (0.13%) and it is not on CISA KEV.

v2 Jun 30, 2026 - 06:06 cvss changed CVSS 7.7

Denial of service in the FreeRDP client (versions prior to 3.21.0) allows a malicious or compromised RDP server to trigger a client-side heap buffer overflow in the gdi_SurfaceToSurface graphics path, crashing the client and potentially corrupting the heap. The overflow stems from a mismatch between destination-rectangle clamping and the actual copy length, so the official CVSS 4.0 vector scores availability impact only (VA:H), though the advisory notes code-execution risk is possible depending on allocator behavior. Publicly available exploit code exists; EPSS is low at 0.13% (33rd percentile) and the issue is not listed in CISA KEV.

v1 Mar 12, 2026 - 21:54 CVSS 9.8

Client-side heap overflow in FreeRDP enables RCE via malicious RDP servers.

RemediationAI

Vendor-released patch: FreeRDP 3.21.0 - upgrade all FreeRDP clients and any applications statically or dynamically linking libfreerdp to 3.21.0 or later (https://github.com/FreeRDP/FreeRDP/releases/tag/3.21.0). Red Hat and other distributions should apply their corresponding errata (e.g., RHSA-2026:3041 and the related RHSA-2026 advisories at https://access.redhat.com/errata/) so that distro-packaged xfreerdp/Remmina builds pick up the fix. Where immediate patching is not possible, the practical compensating control is to restrict which RDP servers clients may reach: only connect FreeRDP clients to known, trusted RDP hosts and block outbound RDP (TCP/UDP 3389) to untrusted networks via firewall/egress policy, since the attack requires the client to talk to a malicious server. This limits the threat surface but does not protect against a compromised legitimate server or an on-path attacker. Review the upstream advisory GHSA-fq8c-87hj-7gvr for confirmation of fixed commit details.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

FreeRDP is the dominant open-source implementation of Microsoft's Remote Desktop Protocol (RDP) and underpins many third-party RDP clients and gateways on Linux and Unix. The flaw lives in libfreerdp's GDI graphics surface handling (libfreerdp/gdi/gfx.c, around lines 1368-1382), specifically the SurfaceToSurface server-to-client blit operation that copies pixel data between graphics surfaces. The destination rectangle is clamped to surface bounds, but the byte count used for the actual memory copy is derived independently, so a server can specify a copy larger than the clamped destination region. This is a classic CWE-122 heap-based buffer overflow: attacker-influenced length data drives a write past the end of a heap allocation. Affected products are identified by CPE cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:* (all FreeRDP versions before the fix).

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 (github) PRIMARY 7.7 HIGH
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
vuln.today AI 6.5 MEDIUM

Server-to-client flaw needs the victim to connect to a hostile server (UI:R); no client auth (PR:N); vendor confirms only availability/DoS impact, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 7.6 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 06:06 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 06:06 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 06:06 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 06:06 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
CRITICAL HIGH
CVSS changed
Jun 30, 2026 - 03:23 NVD
9.8 (CRITICAL) 7.7 (HIGH)
Patch released
Apr 09, 2026 - 20:30 nvd
Patch available
PoC Detected
Jan 28, 2026 - 18:48 vuln.today
Public exploit code
CVE Published
Jan 19, 2026 - 17:15 nvd
CRITICAL 9.8

DescriptionCVE.org

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.21.0, a client-side heap buffer overflow occurs in the FreeRDP client’s gdi_SurfaceToSurface path due to a mismatch between destination rectangle clamping and the actual copy size. A malicious server can trigger a client‑side heap buffer overflow, causing a crash (DoS) and potential heap corruption with code‑execution risk depending on allocator behavior and surrounding heap layout. Version 3.21.0 contains a patch for the issue.

Executive ViewAI

Why It Matters

FreeRDP client versions prior to 3.21.0 are vulnerable to remote denial of service and potential code execution when connecting to malicious or compromised RDP servers, affecting any organization relying on FreeRDP for remote access. Publicly available exploit code exists for this vulnerability. Immediate patching is required to prevent client crashes and potential unauthorized system access.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 67% exploitable
Prevalence
High
de facto open-source RDP client bundled across many Linux distributions
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Affected Products (CPE)CVE.org

cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
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

SUSE

Severity: Critical
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Image SL-Micro Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.1/baremetal-os-container:2.2.1-7.43 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.67 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.57 Affected
Container suse/sl-micro/6.1/base-os-container:2.2.1-5.64 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
SUSE Liberty Linux 8 Fixed

References

Advisories & patches

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