CVE-2026-25997

FreeRDP has heap-use-after-free in xf_clipboard_format_equal

Published Feb 25, 2026 CVSS 4.0 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_clipboard_format_equal` reads freed `lastSentFormats` memory because `xf_clipboard_formats_free` (called from the cliprdr channel thread during auto-reconnect) frees the array while the X11 event thread concurrently iterates it in `xf_clipboard_changed`, triggering a heap use after free. Version 3.23.0 fixes the issue.

Analysis

AI-generated

Technical impact

FreeRDP implementations before version 3.23.0 contain a heap use‑after‑free flaw in the clipboard handling function xf_clipboard_format_equal. The function reads memory that has already been freed by xf_clipboard_formats_free, which is invoked from the cliprdr channel thread during auto‑reconnect while another thread is iterating the same data. This can corrupt memory and may lead to a crash or, in the worst case, remote code execution if an attacker can control the freed data. The weakness is described as CWE‑416 and the lack of proper synchronization is identified as CWE‑825.

Affected Systems

The flaw affects the FreeRDP client application. Any installed instance of the open‑source Remote Desktop Protocol client that runs a version older than 3.23.0 is vulnerable. The issue resides in the X11 clipboard implementation module of the client.

Risk and Exploitability

The entry carries a CVSS score of 5.5, indicating moderate impact. The EPSS score is below 1 %, suggesting a low probability of exploitation at this time. The vulnerability is not listed in CISA’s Known Exploited Vulnerabilities catalog. The attack is most likely triggered when a remote desktop session exchanges clipboard data; a malicious server could potentially trigger the flaw by sending specially crafted clipboard packets. Because the condition depends on concurrent thread activity, the exact exploitation path is non‑trivial, but the defect remains a legitimate risk for systems that rely on the clipboard functionality and has the potential to affect confidentiality, integrity, and availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreeRDP to version 3.23.0 or later to eliminate the use‑after‑free flaw
  • If an upgrade must be delayed, temporarily disable the clipboard feature in the client configuration to prevent the vulnerable code path from executing
  • Apply and test the updated client in a controlled environment before deploying it to production to confirm that clipboard operations function as expected and that no additional crashes occur

Generated by OpenCVE AI on April 17, 2026 at 14:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8105-1 FreeRDP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Freerdp
Freerdp freerdp
Vendors & Products Freerdp
Freerdp freerdp
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_clipboard_format_equal` reads freed `lastSentFormats` memory because `xf_clipboard_formats_free` (called from the cliprdr channel thread during auto-reconnect) frees the array while the X11 event thread concurrently iterates it in `xf_clipboard_changed`, triggering a heap use after free. Version 3.23.0 fixes the issue.
Title FreeRDP has heap-use-after-free in xf_clipboard_format_equal
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 5.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 25, 2026, 9:39 PM
Reserved
Feb 9, 2026, 5:41 PM
Status
Analyzed
Published
Feb 25, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:25 AM
Severity
Moderate
Public date
Feb 25, 2026, 8:38 PM