CVE-2023-40184Improper handling of session establishment errors in xrdp
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | xrdp | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xrdp | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xrdp | Fix pending | 0.9.24-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Ubuntu 22.04 | xrdp | Fix pending | 0.9.17-2ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Ubuntu 20.04 | xrdp | Fix pending | 0.9.12-1ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Ubuntu 18.04 | xrdp | Fix pending | 0.9.5-2ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Ubuntu 16.04 | xrdp | Fix pending | 0.6.1-2ubuntu0.3+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Ubuntu 14.04 | xrdp | Fix pending | 0.6.0-1ubuntu0.1+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-40184 |
| Debian 14 | xrdp | Fixed | 0.9.24-2 | DEBIAN-CVE-2023-40184 |
| Debian 13 | xrdp | Fixed | 0.9.24-2 | DEBIAN-CVE-2023-40184 |
| Debian 12 | xrdp | Fixed | 0.9.21.1-1+deb12u1 | DEBIAN-CVE-2023-40184 |
| Alpine Linux 3.24 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.23 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.22 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.21 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.20 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.19 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
| Alpine Linux 3.18 | xrdp | Fixed | 0.9.23-r0 | ALPINE-CVE-2023-40184 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- neutrinolabs xrdp: affected: < 0.9.23
References
- https://github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq
- https://github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23
- https://github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c#L571C5-L571C19
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5IXMQODV3OIJ7DRQBUQV7PUKNT7SH36/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SOT237TIHTHPX5YNIWLVNINOEYC7WMG2/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/URO3FKTFBPNKFARAQBEJLI4MH6YS35P5/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.