CVE-2023-40184 Improper handling of session establishment errors in xrdp
MediumCVSS 6.5
EPSS 0.85%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/xrdp(Debian:12) | < 0.9.21.1-1+deb12u1 | 0.9.21.1-1+deb12u1 |
| debian/xrdp(Debian:12) | = 0.9.21.1-1 | No fix listed |
| debian/xrdp(Debian:13) | < 0.9.24-2 | 0.9.24-2 |
| debian/xrdp(Debian:14) | < 0.9.24-2 | 0.9.24-2 |
| neutrinolabs xrdp | = < 0.9.23 | No fix listed |
| ubuntu/xrdp(Ubuntu:22.04) | < 0.9.17-2ubuntu2+esm1 | 0.9.17-2ubuntu2+esm1 |
| alpine/xrdp(Alpine:v3.18) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.19) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.20) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.21) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.22) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.23) | < 0.9.23-r0 | 0.9.23-r0 |
| alpine/xrdp(Alpine:v3.24) | < 0.9.23-r0 | 0.9.23-r0 |
| ubuntu/xrdp(Ubuntu:24.04) | < 0.9.24-4ubuntu0.1~esm1 | 0.9.24-4ubuntu0.1~esm1 |
| neutrinolabs xrdp | < 0.9.23 | 0.9.23 |
| ubuntu/xrdp(Ubuntu:Pro:14.04) | < 0.6.0-1ubuntu0.1+esm3 | 0.6.0-1ubuntu0.1+esm3 |
| ubuntu/xrdp(Ubuntu:Pro:14.04) | = 0.6.0-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:14.04) | = 0.6.0-1ubuntu0.1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:14.04) | = 0.6.0-1ubuntu0.1+esm1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:14.04) | = 0.6.0-1ubuntu0.1+esm2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:16.04) | < 0.6.1-2ubuntu0.3+esm3 | 0.6.1-2ubuntu0.3+esm3 |
| ubuntu/xrdp(Ubuntu:Pro:16.04) | = 0.6.1-2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:16.04) | = 0.6.1-2ubuntu0.1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:16.04) | = 0.6.1-2ubuntu0.3 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:16.04) | = 0.6.1-2ubuntu0.3+esm1 | No fix listed |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/xrdp(Ubuntu:Pro:16.04) | = 0.6.1-2ubuntu0.3+esm2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | < 0.9.5-2ubuntu0.1~esm2 | 0.9.5-2ubuntu0.1~esm2 |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.1-9 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.4-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.4-2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.4-3 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.4-4 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.4-5 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.5-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.5-1build1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.5-2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:18.04) | = 0.9.5-2ubuntu0.1~esm1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:20.04) | < 0.9.12-1ubuntu0.1+esm1 | 0.9.12-1ubuntu0.1+esm1 |
| ubuntu/xrdp(Ubuntu:Pro:20.04) | = 0.9.9-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:20.04) | = 0.9.12-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:20.04) | = 0.9.12-1ubuntu0.1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | < 0.9.17-2ubuntu2+esm1 | 0.9.17-2ubuntu2+esm1 |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | = 0.9.15-1ubuntu1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | = 0.9.17-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | = 0.9.17-2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | = 0.9.17-2ubuntu1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:22.04) | = 0.9.17-2ubuntu2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | < 0.9.24-4ubuntu0.1~esm1 | 0.9.24-4ubuntu0.1~esm1 |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.21.1-1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.24-2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.24-3 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.24-3build1 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.24-3build2 | No fix listed |
| ubuntu/xrdp(Ubuntu:Pro:24.04) | = 0.9.24-4 | No fix listed |
References
- Debian Security Tracker CVE-2023-40184 vendor-advisory
- https://github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq issue-tracking vendor-advisory
- https://github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23 issue-tracking patch
- https://github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c#L571C5-L571C19 issue-tracking product
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- lists.debian.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6474-1 vendor-advisory
- USN-8476-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- github.com issue-tracking