Safeguard
Vulnerability Analysis•

CVE-2025-68670: xrdp Stack Buffer Overflow Fixed in 0.10.5

CVE-2025-68670 is an unauthenticated stack buffer overflow in xrdp before 0.10.5. Upgrade to 0.10.5 and do not rely on stack canaries alone.

Safeguard Security Team
3 min read

CVE-2025-68670 is a critical stack based buffer overflow (CVSS 9.1) in xrdp, the open source RDP server. It happens while the server processes user domain information during connection setup, before login. Upgrade to xrdp 0.10.5, and do not rely on stack canaries as protection.

What's affected

  • xrdp before 0.10.5.
  • Fixed version: 0.10.5.
  • Debian Linux is listed as an affected product, and a Debian LTS announcement is referenced for packaged updates.

How to check if you're exposed

Check the installed xrdp version:

xrdp --version

On Debian and Ubuntu you can also read the package version:

dpkg -l xrdp

Package maintainers may backport the fix without changing the upstream version number, so for a distribution package, compare against the distribution's own security notice, such as the Debian LTS announcement for this issue. Also check whether TCP port 3389 is open to networks you do not control.

What to do now

  1. Find every host running xrdp, including remote desktop servers set up for convenience.
  2. Upgrade to xrdp 0.10.5, or install your distribution's fixed package.
  3. Restrict port 3389 to a VPN or trusted address ranges with the host firewall.
  4. Do not assume stack canary builds are safe. The advisory says not to rely on them on production systems.
  5. Review authentication logs for odd connection attempts before login.
  6. Restart the xrdp service after upgrading and confirm the new version.

If staff need remote desktop access, a VPN or a gateway that requires multi factor authentication in front of xrdp removes direct exposure of the service. Pair that with the upgrade. Exposure, not only the version, decides how soon an attacker could reach the vulnerable code.

Why it matters

The record maps this to CWE-121, a stack based buffer overflow, and CWE-787, an out of bounds write. The server copies the domain field from a connection request into a fixed size buffer without checking its length, so oversized input overwrites neighbouring memory, including the return address.

Because this happens early in the connection sequence, no valid account is needed. The advisory notes that stack canary protection lessens the impact, since a second flaw would be needed to leak the canary value, but it tells operators not to depend on that.

Remote desktop services are a frequent target because they give a direct path to a machine. The record does not list this CVE as exploited in the wild, which is a reason to patch calmly, not to wait.

Memory safety bugs like this one appear in network services written in C. They are fixed one at a time, and there will be more. Reducing exposure matters as much as patching: put remote desktop behind a VPN, limit source addresses at the firewall, and turn on multi factor authentication at the gateway.

Compiler hardening such as stack canaries, address space layout randomisation and non executable stacks raises the cost of an attack, but the advisory is explicit that you should not depend on it. Treat those as a second line.

If xrdp comes from a distribution package, subscribe to that distribution's security announcements, since package maintainers often backport fixes.

Quick check

Do stack canaries make CVE-2025-68670 safe?

They lessen the impact, but the advisory says not to rely on them on production systems. Upgrade to 0.10.5.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.