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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-08-30 · Modified: 2025-11-03
- Aliases: MGASA-2023-0276, SUSE-SU-2023:3735-1, SUSE-SU-2023:3830-1, UBUNTU-CVE-2023-40184, DEBIAN-CVE-2023-40184, ALPINE-CVE-2023-40184
- Record: https://cvemate.com/vulnerability/CVE-2023-40184 · JSON: https://cvemate.com/vulnerability/CVE-2023-40184/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.846%, percentile 59.337%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xrdp (Alpine Linux): \< 0.9.23-r0
- debian xrdp (Debian): \< 0.9.21.1-1+deb12u1 \| \< 0.9.24-2
- ubuntu xrdp (Ubuntu): \< 0.6.0-1ubuntu0.1+esm3 \| \< 0.6.1-2ubuntu0.3+esm3 \| \< 0.9.5-2ubuntu0.1~esm2 \| \< 0.9.12-1ubuntu0.1+esm1 \| \< 0.9.17-2ubuntu2+esm1 \| \< 0.9.24-4ubuntu0.1~esm1
- mageia xrdp (Mageia): \< 0.9.23-1.mga8
- mageia xrdp (Mageia): \< 0.9.23-1.mga9
- neutrinolabs xrdp: \< 0.9.23
- opensuse xrdp&distro=openSUSE Leap 15.4 (openSUSE): \< 0.9.13.1-150200.4.24.1
- opensuse xrdp&distro=openSUSE Leap 15.5 (openSUSE): \< 0.9.13.1-150200.4.24.1
- suse xrdp&distro=SUSE Linux Enterprise Module for Basesystem 15 SP4 (SUSE Linux Enterprise): \< 0.9.13.1-150200.4.24.1
- suse xrdp&distro=SUSE Linux Enterprise Module for Basesystem 15 SP5 (SUSE Linux Enterprise): \< 0.9.13.1-150200.4.24.1
- suse xrdp&distro=SUSE Linux Enterprise Server 12 SP5 (SUSE Linux Enterprise): \< 0.9.10-3.11.1
- suse xrdp&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5 (SUSE Linux Enterprise): \< 0.9.10-3.11.1
- suse xrdp&distro=SUSE Manager Proxy 4.2 (SUSE Linux Enterprise): \< 0.9.13.1-150200.4.24.1
- suse xrdp&distro=SUSE Manager Server 4.2 (SUSE Linux Enterprise): \< 0.9.13.1-150200.4.24.1

## 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/>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00018.html>
- <https://advisories.mageia.org/MGASA-2023-0276.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32276>
- <https://www.cve.org/CVERecord?id=CVE-2023-40184>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20233735-1/>
- <https://bugzilla.suse.com/1214805>
- <https://www.suse.com/security/cve/CVE-2023-40184>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20233830-1/>
- <https://ubuntu.com/security/CVE-2023-40184>
- <https://github.com/neutrinolabs/xrdp/commit/25a1fab5b6c5ef2a8bb109232b765cb8b332ce5e>
- <https://ubuntu.com/security/notices/USN-6474-1>
- <https://ubuntu.com/security/notices/USN-8476-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-40184>
- <https://security.alpinelinux.org/vuln/CVE-2023-40184>

---

Data as of 2026-12-05T03:16:53.977Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
