CVE-2023-40184: Improper handling of session establishment errors in xrdp

Published Aug 30, 2023
·
Updated

Last updated 26 June 2026

Other sources

xrdp is an open source remote desktop protocol (RDP) server. In versions prior to 0.9.23 improper handling of session establishment errors allows bypassing OS-level session restrictions. The authstartsession function can return non-zero (1) value on, e.g., PAM error which may result in in session restrictions such as max concurrent sessions per user by PAM (ex ./etc/security/limits.conf) to be bypassed. Users (administrators) don't use restrictions by PAM are not affected. This issue has been addressed in release version 0.9.23. Users are advised to upgrade. There are no known workarounds for this issue.

Affected Software

2 affected componentsFixes available
Neutrinolabs Xrdp<0.9.23
debian/xrdp<=0.9.21.1-1~deb11u1
0.9.21.1-1~deb11u30.9.21.1-1+deb12u20.10.1-3.1+deb13u10.10.5-50.10.6-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/xrdp to 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
  2. Upgrade

    Upgrade xrdp to a version that resolves this vulnerability.

    Fixed in 0.9.23

Event History

Aug 30, 2023
CVE Published
via MITRE·05:48 PM
Data Sourced
via MITRE·05:48 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 25, 2026
Data Sourced
via Debian·04:25 PM
DescriptionAffected Software
Jun 26, 2026
Data Sourced
via Ubuntu·04:26 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·04:27 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-40184?

CVE-2023-40184 is a vulnerability in the xrdp remote desktop protocol (RDP) server that allows bypassing OS-level session restrictions.

2

How does CVE-2023-40184 affect xrdp?

CVE-2023-40184 affects xrdp versions prior to 0.9.23 and results in improper handling of session establishment errors.

3

What is the severity of CVE-2023-40184?

CVE-2023-40184 has a severity rating of medium with a CVSS score of 6.5.

4

How can CVE-2023-40184 be exploited?

CVE-2023-40184 can be exploited by returning a non-zero value on session establishment errors, such as PAM error, to bypass OS-level session restrictions.

5

How can I fix CVE-2023-40184?

To fix CVE-2023-40184, upgrade xrdp to version 0.9.23 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203