CVE-2026-25959

FreeRDP has heap-use-after-free in xf_cliprdr_provide_data_

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_cliprdr_provide_data_` passes freed `pDstData` to `XChangeProperty` because the cliprdr channel thread calls `xf_cliprdr_server_format_data_response` which converts and uses the clipboard data without holding any lock, while the X11 event thread concurrently calls `xf_cliprdr_clear_cached_data` → `HashTable_Clear` which frees the same data via `xf_cached_data_free`, triggering a heap use after free. Version 3.23.0 fixes the issue.

Analysis

AI-generated

Technical impact

The vulnerability is a heap-use-after-free in the FreeRDP function xf_cliprdr_provide_data_. During a clipboard transfer, the client processes data in two threads: the cliprdr channel thread that prepares the data and the X11 event thread that clears cached data. The lack of a lock allows the first thread to use a pointer after the memory has been freed by the second thread, corrupting the heap. If an attacker can control the clipboard content or timing, they could trigger this memory corruption to crash the client or execute arbitrary code in the context of the running user. The bug is specific to the memory handling of clipboard data and does not affect authentication or network traffic directly.

Affected Systems

All installations of the FreeRDP client before version 3.23.0 are affected. This includes any build that links against the xf_cliprdr module for X11, which is used by most desktop and headless deployments of FreeRDP. Systems that ship or compile the older mainline source will be vulnerable unless they apply the patch that became part of the 3.23.0 release.

Risk and Exploitability

The CVSS v3 score of 5.5 indicates moderate severity, and the EPSS score of less than 1% reflects a very low probability of exploitation in the wild at present. The flaw is not listed in CISA’s KEV catalog. Exploitation requires an active RDP session with clipboard redirection enabled and the ability to send improperly formed clipboard data. If achieved, the attack would land in the local user’s process space, potentially allowing privilege escalation or privilege-bound code execution. However, the low exploitation probability and moderate impact suggest a cautious but proactive stance.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the FreeRDP client to version 3.23.0 or later, which removes the heap-use-after-free bug.
  • If an upgrade cannot be performed immediately, disable clipboard redirection or the cliprdr channel to prevent the flaw from being exercised.
  • Ensure that any custom clipboard handling or third‑party extensions are removed or updated to use the patched code base.

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
Metrics ssvc

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

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
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_cliprdr_provide_data_` passes freed `pDstData` to `XChangeProperty` because the cliprdr channel thread calls `xf_cliprdr_server_format_data_response` which converts and uses the clipboard data without holding any lock, while the X11 event thread concurrently calls `xf_cliprdr_clear_cached_data` → `HashTable_Clear` which frees the same data via `xf_cached_data_free`, triggering a heap use after free. Version 3.23.0 fixes the issue.
Title FreeRDP has heap-use-after-free in xf_cliprdr_provide_data_
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 26, 2026, 3:52 PM
Reserved
Feb 9, 2026, 5:13 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:36 PM