Description
RustDesk's Windows clipboard redirection copies a peer-supplied length into a fixed-size caller buffer without an upper bound check. When an OLE paste consumer such as explorer.exe calls IStream::Read with a buffer of cb bytes, CliprdrStream_Read in libs/clipboard/src/windows/wf_cliprdr.c requests that many bytes of a remote file through cliprdr_send_request_filecontents and then executes CopyMemory(pv, clipboard->req_fdata, clipboard->req_fsize), where req_fsize is taken verbatim from the peer's CLIPRDR FileContentsResponse by wf_cliprdr_server_file_contents_response (req_fsize = fileContentsResponse->cbRequested) and is never clamped to cb anywhere in the chain. The function's only length comparison, req_fsize < cb, handles the short-read case and is evaluated after the copy has already occurred. A malicious or compromised peer that answers a small file-contents read with an oversized response therefore writes attacker-chosen data past the end of the paste consumer's heap buffer when the local user pastes clipboard file contents offered by the remote side. The file is a fork of FreeRDP's client/Windows/wf_cliprdr.c, where the same defect is CVE-2026-68579, fixed in FreeRDP 3.30.0.
Published: 2026-08-24
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Heap Buffer Overflow
Action: Immediate Patch
AI Analysis

Impact

RustDesk’s Windows clipboard redirection code copies a peer‑supplied length into a fixed‑size buffer without an upper bound check. When a remote client responds to a file‑contents request with a length larger than the buffer supplied by the OLE paste consumer, the code performs an unchecked CopyMemory that writes past the end of that buffer. This produces an out‑of‑bounds write in heap memory that can corrupt adjacent data and potentially lead to application crashes or other unpredictable behavior.

Affected Systems

The flaw affects RustDesk versions through 1.4.9 that include the original clipboard handling implementation. Users running RustDesk 1.4.9 on Windows are vulnerable unless they have applied a patch from a newer release. All 1.4.x releases prior to the fix remain impacted.

Risk and Exploitability

The vulnerability carries a CVSS base score of 8.5, indicating a high severity. EPSS data is not available, but the flaw can be triggered by any active remote session that supplies an oversized file‑contents response during clipboard paste activity. The risk is elevated in environments that allow untrusted remote connections. The issue is not listed in the CISA KEV catalog, but that does not alter the potential impact if an attacker controls the remote session.

Generated by OpenCVE AI on August 24, 2026 at 17:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade RustDesk to a version that includes the clipboard length validation fix.
  • If an upgrade is not feasible, disable clipboard redirection or restrict it to trusted hosts only.
  • Monitor clipboard paste activity for abnormal or repeated large file‑contents requests.

Generated by OpenCVE AI on August 24, 2026 at 17:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 24 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Rustdesk
Rustdesk rustdesk
Vendors & Products Rustdesk
Rustdesk rustdesk

Mon, 24 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Description RustDesk's Windows clipboard redirection copies a peer-supplied length into a fixed-size caller buffer without an upper bound check. When an OLE paste consumer such as explorer.exe calls IStream::Read with a buffer of cb bytes, CliprdrStream_Read in libs/clipboard/src/windows/wf_cliprdr.c requests that many bytes of a remote file through cliprdr_send_request_filecontents and then executes CopyMemory(pv, clipboard->req_fdata, clipboard->req_fsize), where req_fsize is taken verbatim from the peer's CLIPRDR FileContentsResponse by wf_cliprdr_server_file_contents_response (req_fsize = fileContentsResponse->cbRequested) and is never clamped to cb anywhere in the chain. The function's only length comparison, req_fsize < cb, handles the short-read case and is evaluated after the copy has already occurred. A malicious or compromised peer that answers a small file-contents read with an oversized response therefore writes attacker-chosen data past the end of the paste consumer's heap buffer when the local user pastes clipboard file contents offered by the remote side. The file is a fork of FreeRDP's client/Windows/wf_cliprdr.c, where the same defect is CVE-2026-68579, fixed in FreeRDP 3.30.0.
Title RustDesk through 1.4.9 Heap Buffer Overflow via Unvalidated CLIPRDR FileContentsResponse Length
Weaknesses CWE-20
CWE-787
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Rustdesk Rustdesk
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-29T11:47:51.166Z

Reserved: 2026-08-19T20:34:19.724Z

Link: CVE-2026-76840

cve-icon Vulnrichment

Updated: 2026-08-24T16:26:58.997Z

cve-icon NVD

Status : Received

Published: 2026-08-24T14:17:01.550

Modified: 2026-08-24T17:18:17.950

Link: CVE-2026-76840

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T18:00:04Z

Weaknesses