CVE-2023-40184
Improper handling of session establishment errors in xrdp
Reported by github_m · Published August 30, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xrdp | Alpine | 0.9.23-r0 |
| xrdp | neutrinolabs | 0.9.23 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| neutrinolabs | xrdp | < 0.9.23 |
| alpine | xrdp | 0 |
| neutrinolabs | xrdp | 0 |
Timeline
- Aug 30, 2023 CVE Published
- Aug 31, 2023 EPSS Score (30 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Feb 7, 2026 Security Advisory
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-40184
vulnetix vdb fixes CVE-2023-40184
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40184/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq x_refsource_CONFIRM
- https://github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23 x_refsource_MISC
- https://github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c#L571C5-L571C19 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/05/msg00018.html advisory