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

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 62% of CVEs (2026-11-30)
- Published: 2023-08-30T17:48:30.552Z
- Modified: 2026-06-17T06:16:36.633Z
- Weaknesses: CWE-755
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- neutrinolabs xrdp: < 0.9.23; before 0.9.23

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq> (vendor-advisory)
- <https://github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23> (patch)
- <https://github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c#L571C5-L571C19> (product)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5IXMQODV3OIJ7DRQBUQV7PUKNT7SH36/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SOT237TIHTHPX5YNIWLVNINOEYC7WMG2/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/URO3FKTFBPNKFARAQBEJLI4MH6YS35P5/> (mailing-list)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00018.html>

## Sources

- CVE List: [CVE-2023-40184](https://www.cve.org/CVERecord?id=CVE-2023-40184), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2023-40184](https://nvd.nist.gov/vuln/detail/CVE-2023-40184), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40184 · Whole record: https://cve.day/CVE-2023-40184.json · Rebuilt by cve.day 2026-11-25T22:58:27.452Z
