CVE-2026-76840

Source
https://cve.org/CVERecord?id=CVE-2026-76840
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76840.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-76840
Aliases
Published
2026-08-24T13:11:58.408Z
Modified
2026-08-27T11:47:28.083696253Z
Severity
  • 8.5 (High) CVSS_V4 - 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 CVSS Calculator
Summary
RustDesk through 1.4.9 Heap Buffer Overflow via Unvalidated CLIPRDR FileContentsResponse Length
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76840.json",
    "cwe_ids": [
        "CWE-20",
        "CWE-787"
    ],
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/rustdesk/rustdesk

Affected ranges

Type
GIT
Repo
https://github.com/rustdesk/rustdesk
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
Show details
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.4.9"
        }
    ]
}

Affected versions

1.*
1.1.3
1.1.8
1.1.9
1.2.0
1.2.1
1.2.2
1.2.3
1.2.3-1
1.2.3-2
1.2.4
1.2.5
1.2.6
1.2.7
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
1.4.9
Other
fdroid-version
nightly

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76840.json"