CVE-2026-76840: RustDesk through 1.4.9 Heap Buffer Overflow via Unvalidated CLIPRDR FileContentsResponse Length
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
RustDeskto a version that resolves this vulnerability.Fixed in 1.4.9 - Upgrade
Upgrade
FreeRDPto a version that resolves this vulnerability.Fixed in 3.30.0Patch CVE-2026-68579
Event History
Frequently Asked Questions
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.
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.
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.
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.