CVE-2026-76840: RustDesk through 1.4.9 Heap Buffer Overflow via Unvalidated CLIPRDR FileContentsResponse Length

Published Aug 24, 2026
·
Updated

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, CliprdrStreamRead in libs/clipboard/src/windows/wfcliprdr.c requests that many bytes of a remote file through cliprdrsendrequestfilecontents and then executes CopyMemory(pv, clipboard->reqfdata, clipboard->reqfsize), where reqfsize is taken verbatim from the peer's CLIPRDR FileContentsResponse by wfcliprdrserverfilecontentsresponse (reqfsize = fileContentsResponse->cbRequested) and is never clamped to cb anywhere in the chain. The function's only length comparison, reqfsize < 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/wfcliprdr.c, where the same defect is CVE-2026-68579, fixed in FreeRDP 3.30.0.

Affected Software

1 affected component
RustDesk RustDesk<=1.4.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade RustDesk to a version that resolves this vulnerability.

    Fixed in 1.4.9
  2. Upgrade

    Upgrade FreeRDP to a version that resolves this vulnerability.

    Fixed in 3.30.0Patch CVE-2026-68579

Event History

Aug 24, 2026
CVE Published
via MITRE·01:11 PM
Data Sourced
via MITRE·01:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems and workflows are exposed?

Exposure is limited to RustDesk through version 1.4.9 on Windows when clipboard redirection is used and a local OLE paste consumer, such as explorer.exe, reads file contents offered through the remote peer's clipboard.

2

What does an attacker need to do to trigger the flaw?

The attacker must be the connected peer, or compromise that peer, and send an oversized CLIPRDR FileContentsResponse for a requested remote clipboard file. A local user must then paste or otherwise cause a local OLE paste consumer to read those offered file contents.

3

What can be done before an update is available or deployed?

Avoid pasting file contents offered by untrusted or potentially compromised remote peers through RustDesk clipboard redirection. This removes the user action needed for the vulnerable read path.

4

What is the security impact of a successful attempt?

The peer-controlled response length can cause attacker-chosen data to be copied beyond the local paste consumer's heap buffer. The supplied severity data rates integrity and availability impact as high, with low confidentiality impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203