Security features bypass in xrdp - CVE-2023-40184
Published: August 31, 2023
Vulnerability identifier: #VU80197
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-40184
CWE-ID: CWE-254
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote user to bypass implemented security restrictions.
The vulnerability exists due to improper handling of session restrictions inside the xrdp-sesman. A remote user can bypass session restrictions, such as max concurrent sessions per user enforced by PAM.
Affected software
xrdp
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
Ubuntu
Basesystem Module
openSUSE Leap
Anolis OS
xrdp (Ubuntu package)
xrdp
xrdp-debuginfo
xrdp-debugsource
librfxencode0
librfxencode0-debuginfo
libpainter0
xrdp-devel
libpainter0-debuginfo
xrdp-selinux
xrdp-doc
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
Ubuntu
Basesystem Module
openSUSE Leap
Anolis OS
xrdp (Ubuntu package)
xrdp
xrdp-debuginfo
xrdp-debugsource
librfxencode0
librfxencode0-debuginfo
libpainter0
xrdp-devel
libpainter0-debuginfo
xrdp-selinux
xrdp-doc
How to mitigate CVE-2023-40184
Install updates from vendor's website.
xrdp - update to 0.9.23
xrdp (Ubuntu package) - addressed in versions Ubuntu Pro, 0.9.5-2ubuntu0.1~esm3, 0.9.12-1ubuntu0.1+esm2, 0.9.17-2ubuntu3+esm2, 0.9.24-4ubuntu0.1~esm1, 0.10.1-3.1+deb13u1build0.25.10.1
xrdp - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
xrdp-debuginfo - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
xrdp-debugsource - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
librfxencode0 - update to 0.9.13.1-150200.4.24.1
librfxencode0-debuginfo - update to 0.9.13.1-150200.4.24.1
libpainter0 - update to 0.9.13.1-150200.4.24.1
xrdp-devel - update to 0.9.13.1-150200.4.24.1
libpainter0-debuginfo - update to 0.9.13.1-150200.4.24.1
xrdp - addressed in versions 0.9.23-1.el7, 0.9.23-1.el8, 0.9.23-1.el9, 0.9.23-1.fc37, 0.9.23-1.fc38, 0.9.23-1.fc39
xrdp - update to 0.9.23.1-1
xrdp-devel - update to 0.9.23.1-1
xrdp-selinux - update to 0.9.23.1-1
xrdp-doc - update to 0.9.23.1-1
xrdp (Ubuntu package) - addressed in versions Ubuntu Pro, 0.9.5-2ubuntu0.1~esm3, 0.9.12-1ubuntu0.1+esm2, 0.9.17-2ubuntu3+esm2, 0.9.24-4ubuntu0.1~esm1, 0.10.1-3.1+deb13u1build0.25.10.1
xrdp - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
xrdp-debuginfo - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
xrdp-debugsource - addressed in versions 0.9.10-3.11.1, 0.9.10-3.16.1, 0.9.13.1-150200.4.24.1
librfxencode0 - update to 0.9.13.1-150200.4.24.1
librfxencode0-debuginfo - update to 0.9.13.1-150200.4.24.1
libpainter0 - update to 0.9.13.1-150200.4.24.1
xrdp-devel - update to 0.9.13.1-150200.4.24.1
libpainter0-debuginfo - update to 0.9.13.1-150200.4.24.1
xrdp - addressed in versions 0.9.23-1.el7, 0.9.23-1.el8, 0.9.23-1.el9, 0.9.23-1.fc37, 0.9.23-1.fc38, 0.9.23-1.fc39
xrdp - update to 0.9.23.1-1
xrdp-devel - update to 0.9.23.1-1
xrdp-selinux - update to 0.9.23.1-1
xrdp-doc - update to 0.9.23.1-1
External References
- https://github.com/neutrinolabs/xrdp/releases/tag/v0.9.23
- 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
Related Security Bulletins
- Security restrictions bypass in xrdp
- Fedora EPEL 9 update for xrdp
- Fedora EPEL 7 update for xrdp
- Fedora EPEL 8 update for xrdp
- Fedora 39 update for xrdp
- Fedora 37 update for xrdp
- Fedora 38 update for xrdp
- SUSE update for xrdp
- SUSE update for xrdp
- Ubuntu update for xrdp
- SUSE update for xrdp
- Anolis OS update for xrdp
- Ubuntu update for xrdp