Skip to content
Memory corruption Write-up Advanced

From AI Agents to RCE - Building a Vulnerability Research Workflow

A heap buffer overflow in FreeRDP's routing token handling and an uninitialised heap disclosure in USB redirection were found; together they could allow a malicious RDP server to achieve remote code execution on the client.

Julien Lair Follow

Published on blog.quarkslab.com

Posted Tue 29 September 2026 Author Julien Lair Category AI Tags ai, agentic, llm, vulnerability, 2026, CVE-2026-91964, CVE-2026-91963

Julien Lair, on blog.quarkslab.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the routing token length from a server redirection PDU is not properly bounded before being copied into a fixed-size buffer, and an error path leaves an attacker-controlled size for uninitialised heap data.

Impact

A malicious RDP server could exploit these vulnerabilities to achieve remote code execution on the client, though the exploit required researcher intervention and was demonstrated in a lab environment.

What the attacker needed

Victim connects to a malicious RDP server; server sends crafted redirection data; client built with assertions disabled

The fix

The vulnerabilities were reported to the FreeRDP maintainers; the text does not state whether a fix was released.

How it was found

  1. Index the FreeRDP codebase into a queryable graph.
  2. Perform reconnaissance to identify attack surface and slices.
  3. Slice the code to focus on specific components.
  4. Run static analysis and taint tracking to find candidate vulnerabilities.
  5. Triage findings and build PoCs with AddressSanitizer.
  6. Chain validated primitives to attempt exploitation.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

FreeRDP is software that lets your computer connect to remote desktops. A malicious server could send specially crafted data that overflows a buffer in the client, and another bug leaks memory contents. Combined, these could let the server run code on your machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.