CVE-2025-68670: xrdp improperly checks bounds of domain string length, which leads to Stack-based Buffer Overflow
Last updated 26 June 2026
Other sources
xrdp is an open source RDP server. xrdp before v0.10.5 contains an unauthenticated stack-based buffer overflow vulnerability. The issue stems from improper bounds checking when processing user domain information during the connection sequence. If exploited, the vulnerability could allow remote attackers to execute arbitrary code on the target system. The vulnerability allows an attacker to overwrite the stack buffer and the return address, which could theoretically be used to redirect the execution flow. The impact of this vulnerability is lessened if a compiler flag has been used to build the xrdp executable with stack canary protection. If this is the case, a second vulnerability would need to be used to leak the stack canary value. Upgrade to version 0.10.5 to receive a patch. Additionally, do not rely on stack canary protection on production systems.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/xrdpto a version that resolves this vulnerability.Fixed in 0.9.21.1-1~deb11u3Fixed in 0.9.21.1-1+deb12u2Fixed in 0.10.1-3.1+deb13u1Fixed in 0.10.5-5Fixed in 0.10.6-5 - Upgrade
Upgrade
xrdpto a version that resolves this vulnerability.Fixed in 0.10.5 - Compensating control
Do not rely on stack canary protection on production systems.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68670?
CVE-2025-68670 is classified as a critical vulnerability due to its ability to cause a stack-based buffer overflow.
How do I fix CVE-2025-68670?
To fix CVE-2025-68670, upgrade xrdp to version 0.10.5 or later.
What is the impact of CVE-2025-68670 on affected systems?
CVE-2025-68670 can lead to remote code execution due to an unauthenticated stack-based buffer overflow.
Which versions of xrdp are affected by CVE-2025-68670?
CVE-2025-68670 affects xrdp versions prior to 0.10.5.
Is CVE-2025-68670 exploitable remotely?
Yes, CVE-2025-68670 is exploitable remotely, allowing attackers to gain unauthorized access to the system.