RustDesk's Windows clipboard redirection copies a peer-supplied length into a fixed-size caller buffer without an upper bound check. (CVE-2026-76840)
RustDesk's Windows clipboard redirection contains a vulnerability where a peer-supplied length is copied into a fixed-size buffer without an upper bound check. This can lead to a heap buffer overflow when pasting clipboard file contents from a malicious or compromised remote peer. The flaw originates from improper handling of the requested file contents size, allowing attacker-controlled data to overwrite memory beyond the intended buffer.
AI Analysis
Technical Summary
The vulnerability in RustDesk's Windows clipboard redirection involves copying a peer-supplied length into a fixed-size caller buffer without verifying that the length does not exceed the buffer size. Specifically, when an OLE paste consumer calls IStream::Read, RustDesk requests that many bytes of a remote file and then copies the data using CopyMemory with a size parameter taken directly from the remote peer's FileContentsResponse. The size is never clamped to the caller's buffer size, resulting in a heap buffer overflow if the remote peer supplies an oversized response. This vulnerability is a fork of a similar defect in FreeRDP (CVE-2026-68579) which was fixed in FreeRDP 3.30.0.
Potential Impact
An attacker controlling or compromising the remote peer can cause RustDesk to write attacker-chosen data beyond the bounds of a heap buffer in the local paste consumer process. This can lead to memory corruption with potential consequences including code execution, denial of service, or data integrity compromise. The CVSS score of 9.6 reflects the high impact with network attack vector, low attack complexity, no privileges required, user interaction needed, scope change, partial confidentiality loss, high integrity and availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid accepting clipboard file contents from untrusted or unknown remote peers. Monitor vendor channels for updates or patches addressing this vulnerability.
RustDesk's Windows clipboard redirection copies a peer-supplied length into a fixed-size caller buffer without an upper bound check. (CVE-2026-76840)
Description
RustDesk's Windows clipboard redirection contains a vulnerability where a peer-supplied length is copied into a fixed-size buffer without an upper bound check. This can lead to a heap buffer overflow when pasting clipboard file contents from a malicious or compromised remote peer. The flaw originates from improper handling of the requested file contents size, allowing attacker-controlled data to overwrite memory beyond the intended buffer.
CVSS v3.1
Score 9.6critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in RustDesk's Windows clipboard redirection involves copying a peer-supplied length into a fixed-size caller buffer without verifying that the length does not exceed the buffer size. Specifically, when an OLE paste consumer calls IStream::Read, RustDesk requests that many bytes of a remote file and then copies the data using CopyMemory with a size parameter taken directly from the remote peer's FileContentsResponse. The size is never clamped to the caller's buffer size, resulting in a heap buffer overflow if the remote peer supplies an oversized response. This vulnerability is a fork of a similar defect in FreeRDP (CVE-2026-68579) which was fixed in FreeRDP 3.30.0.
Potential Impact
An attacker controlling or compromising the remote peer can cause RustDesk to write attacker-chosen data beyond the bounds of a heap buffer in the local paste consumer process. This can lead to memory corruption with potential consequences including code execution, denial of service, or data integrity compromise. The CVSS score of 9.6 reflects the high impact with network attack vector, low attack complexity, no privileges required, user interaction needed, scope change, partial confidentiality loss, high integrity and availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid accepting clipboard file contents from untrusted or unknown remote peers. Monitor vendor channels for updates or patches addressing this vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-8m44-j2jr-wmrp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-76840"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a8c740cacd9273b49d5cf27
Added to database: 08/24/2026, 16:40:44 UTC
Last enriched: 08/24/2026, 16:52:27 UTC
Last updated: 08/24/2026, 16:52:27 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.