Home/ Blog/ Security news/ Article
Blog · Security news

A malicious remote desktop server can corrupt FreeRDP's Windows client via the clipboard (CVE-2026-68579)

FreeRDP fixed CVE-2026-68579, a critical clipboard heap overflow in its Windows client. A malicious remote desktop server can corrupt memory. Update to 3.30.0.

Illustration of a remote desktop connection passing a clipboard file between two computers

Most teams treat remote desktop as an inbound problem. Lock down the listening port, stop the brute-force attempts, patch the server. A flaw published this week in FreeRDP, the widely used open-source implementation of Microsoft's Remote Desktop Protocol, points the other way. A malicious or compromised remote desktop server can corrupt memory inside the FreeRDP client on the machine that connects to it, and it does so through something as ordinary as pasting a file. FreeRDP fixed it in version 3.30.0. The identifier, CVE-2026-68579, was published to the U.S. National Vulnerability Database on August 2.

There is a second reason this one is worth reading past the headline: a person did not find it. According to FreeRDP's own advisory, the bug was surfaced by an AI system running automated vulnerability discovery against the codebase. More on that below, because it changes how fast defenders should expect these dependency bugs to keep arriving.

What the bug actually does

The defect lives in CliprdrStream_Read, part of the Windows clipboard code in client/Windows/wf_cliprdr.c. When you copy a file inside a remote desktop session and paste it locally, Windows asks the FreeRDP client for the file's contents through an OLE read. The client hands over a fixed-size buffer of cb bytes and requests that many bytes of file data from the server. When the server replies, the client copies the response into that buffer using the length the server supplied, not the size of the buffer it was given. A server that answers a request for 16 kilobytes with a far larger response writes attacker-controlled bytes past the end of a heap buffer, in the process that did the paste (often explorer.exe). That is an out-of-bounds write, catalogued as CWE-787.

An out-of-bounds write of attacker-chosen data next to live heap objects is the classic precursor to remote code execution. NVD scores it 9.6 on the CVSS 3.1 scale and marks it critical; FreeRDP's advisory and VulnCheck both rate it high, at 8.7 on CVSS 4.0. Code execution is plausible, not proven. Treat the split scores as a reminder that the ceiling is high and the confirmed floor is memory corruption.

Source: FreeRDP advisory GHSA-m37j-jcr2-8gcc and NVD CVE-2026-68579.
ItemDetail
AffectedFreeRDP Windows client, versions up to and including 3.29.0
Fixed in3.30.0
Severity9.6 critical (NVD, CVSS 3.1); rated high, 8.7, by FreeRDP and VulnCheck (CVSS 4.0)
ExploitationNo public exploit or in-the-wild use known at publication
PreconditionClipboard file redirection enabled; user pastes a file the server offered

Who is affected, and who is not

The vulnerable function sits in the Windows client tree. That scoping matters, and most of the early write-ups blur it. This is not a flaw in every FreeRDP build on every platform. It affects FreeRDP-based remote desktop clients that run on Windows, which includes the wfreerdp client and Windows software that embeds FreeRDP's Windows clipboard code. The Linux clients that most people picture when they hear FreeRDP, Remmina and the X11 or Wayland builds, use a different clipboard path and are not affected by this specific bug.

Three conditions have to line up for an attack. Clipboard file redirection is enabled, which is common. The user connects to a server the attacker controls or has compromised. And the user pastes file contents the server offered. The CVSS vector carries a user-interaction requirement for exactly that reason: it is not a zero-click flaw, but pasting from a remote session is a routine act, and a helpful support prompt asking a user to copy a file across is not a stretch.

Why a client-side remote desktop bug matters

The useful lesson here is about direction of trust. A remote desktop client implicitly trusts the server it connects to, and hands that server a rich set of channels: clipboard, drives, printers, audio, smart cards. Each channel is attack surface pointed back at the client. This CVE is one of several heap overflows FreeRDP has fixed in its clipboard code recently, and the pattern is consistent: the client parses server-supplied lengths without bounding them.

That threat model shows up in real places. A jump box or bastion that an attacker has quietly taken over can now reach back into every workstation that RDPs into it. A shared lab or a throwaway cloud host handed to a contractor is a server nobody fully trusts. A social-engineering call that talks a user into connecting to an attacker's remote desktop server turns the whole thing into a client-side exploit delivery mechanism. If your threat model only accounts for defending the RDP server, it is missing half the surface.

An AI found it, and that is the trend

FreeRDP's advisory credits the discovery to Claude, Anthropic's model, and Ada Logics, with the report reviewed and filed by David Korczynski. The finding came out of research into using large language models to hunt for vulnerabilities in open-source software. Independent triage backed it before the fix shipped.

The angle for defenders is not the novelty. It is the throughput. Automated discovery run continuously against the dependencies you ship means the rate of real, filed CVEs in libraries you did not write is going up, and the window between a quiet fix and a public identifier keeps shrinking. FreeRDP's advisory went public on July 20; the NVD record landed on August 2. If your patch cadence is tuned to the pace of a human research team publishing a few times a year, that assumption is expiring. We wrote about AI systems finding and exploiting real weaknesses in controlled security tests; this is the same capability pointed at a dependency you may be shipping.

What to do now

Update FreeRDP to 3.30.0 or later on any Windows host running a FreeRDP-based client. That is the fix, and there is no vendor-listed workaround that fully closes the hole.

Until you have patched, or on hosts you cannot patch immediately, reduce the exposure. Inventory where FreeRDP's Windows client actually runs, including third-party tools that bundle it, because that is the population at risk and it is easy to miss. Connect only to remote desktop servers you trust, and be deliberate about clipboard file redirection to servers you do not control. Where the client supports disabling clipboard or drive redirection for untrusted connections, use it.

The wider move is to write the untrusted-server case into your remote-access threat model. A managed detection practice watches for the signals that survive a patch gap: unexpected crashes of wfreerdp or the pasting process, and outbound RDP connections from workstations to hosts outside your known set. Memory corruption on the client is hard to catch after the fact, so the real defense is upstream: knowing which of your machines run the vulnerable client and which servers they are allowed to reach. For related infrastructure exposure, our write-up on the VMware vCenter and ESXi chain makes the same point about trust boundaries you assumed were one-directional.

Frequently asked questions

What is CVE-2026-68579?

CVE-2026-68579 is a critical heap buffer overflow in FreeRDP's Windows clipboard client. When a user pastes file contents from a remote desktop session, the client copies the server-supplied length instead of the buffer size, letting a malicious server write attacker-controlled data past a heap buffer. It is fixed in FreeRDP 3.30.0.

Which FreeRDP versions are affected?

FreeRDP versions up to and including 3.29.0 are affected, and the fix is in 3.30.0. The vulnerable code is in the Windows client tree, so it impacts FreeRDP-based clients running on Windows. The Linux clients, including Remmina, use different clipboard code and are not affected by this bug.

Is CVE-2026-68579 being exploited in the wild?

No public exploit or in-the-wild exploitation was known at the time of publication, and the flaw is not on CISA's Known Exploited Vulnerabilities list. It requires a malicious or compromised remote desktop server plus a user pasting server-offered file contents, so it is not a zero-click attack. Patching to 3.30.0 remains the right response.

How do I protect against this FreeRDP clipboard flaw?

Update FreeRDP to 3.30.0 or later on every Windows host running a FreeRDP-based client, including tools that bundle it. Until then, connect only to remote desktop servers you trust and be cautious with clipboard file redirection to servers you do not control. Disable clipboard or drive redirection for untrusted connections where the client allows it.

Who discovered CVE-2026-68579?

FreeRDP's advisory credits the discovery to Claude, Anthropic's AI model, and Ada Logics, with the report reviewed and filed by David Korczynski. It came from research into using large language models for automated vulnerability discovery in open-source software, and independent triage confirmed it before the fix shipped in version 3.30.0.

Ready to meet the Guardians?

Deploys fast - agentless for monitoring and cloud, a lightweight agent for deep endpoint security. Just Suriq, standing watch.