{
  "id": "CVE-2026-76840",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-76840",
  "published_at": "2026-08-24T13:11:58.408Z",
  "title": "RustDesk before 1.5.0 Heap Buffer Overflow via Unvalidated CLIPRDR FileContentsResponse Length",
  "vendor": "rustdesk",
  "product": "rustdesk",
  "cvss": {
    "score": 9.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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-\u003ereq_fdata, clipboard-\u003ereq_fsize), where req_fsize is taken verbatim from the peer's CLIPRDR FileContentsResponse by wf_cliprdr_server_file_contents_response (req_fsize = fileContentsResponse-\u003ecbRequested) and is never clamped to cb anywhere in the chain. The function's only length comparison, req_fsize \u003c 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.",
  "cwe": "CWE-787",
  "cvss_by_source": {
    "cna": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "rustdesk",
        "product": "rustdesk",
        "ranges": [
          "\u003c 1.5.0"
        ],
        "fixed_in": [
          "1.5.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade rustdesk to 1.5.0 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/rustdesk/rustdesk/pull/15515"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-m37j-jcr2-8gcc"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
