CVE-2023-40184: neutrinolabs xrdp · Improper Handling of Exceptional Conditions
Affects neutrinolabs xrdpSource CVE Database V5
Not known to be exploited · CVSS 2.6 Low : upgrade to 0.9.23 when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.9.23
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 30 Aug 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade neutrinolabs/xrdp to 0.9.23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubneutrinolabs/xrdppkg:github/neutrinolabs/xrdpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2023-40184, European organizations should: 1) Upgrade neutrinolabs xrdp to version 0.9.23 or later, where the vulnerability is fixed. 2) Review and audit PAM configurations related to session restrictions to ensure they are correctly applied and monitored. 3) Implement strict user access controls and monitoring to detect unusual session activity or attempts to bypass session limits. 4) Consider additional session management controls at the network or application layer to complement PAM restrictions. 5) Educate administrators and users about the importance of applying updates promptly and monitoring remote desktop usage. 6) If upgrading immediately is not feasible, restrict xrdp usage to trusted users and environments, minimizing exposure. 7) Employ logging and alerting on session establishment failures and anomalies to detect potential exploitation attempts. These steps go beyond generic advice by focusing on configuration auditing, monitoring, and layered controls specific to PAM and xrdp environments.
Description
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 `auth_start_session` 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.
References
- github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq (opens in a new tab)
- github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23 (opens in a new tab)
- github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5IXMQODV3OIJ7DRQBUQV7PUKNT7SH36/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SOT237TIHTHPX5YNIWLVNINOEYC7WMG2/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/URO3FKTFBPNKFARAQBEJLI4MH6YS35P5/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00018.html (opens in a new tab)