CVE-2023-40184
xrdp vulnerability analysis and mitigation

Overview

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 vulnerability was discovered and reported by @gafusss and was assigned CVE-2023-40184. The issue was fixed with the release of version 0.9.23 on August 31, 2023 (GitHub Advisory).

Technical details

The vulnerability stems from the auth_start_session function returning a non-zero (1) value on PAM errors, which could result in session restrictions such as maximum concurrent sessions per user enforced by PAM (e.g., through /etc/security/limits.conf) being bypassed. The issue has been assigned a CVSS v3.1 base score of 2.6 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L (GitHub Advisory).

Impact

The vulnerability allows attackers to bypass operating system-level session restrictions that are enforced through PAM. This specifically affects restrictions like maximum concurrent sessions per user that are configured through PAM modules (e.g., in /etc/security/limits.conf). Users or administrators who don't use PAM restrictions are not affected by this vulnerability (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in xrdp version 0.9.23. Users are advised to upgrade to this version or later. There are no known workarounds for this issue. The fix involves properly handling the return value from the auth_start_session function (GitHub Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related xrdp vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68670CRITICAL9.8
  • xrdpxrdp
  • xorgxrdp-debugsource
NoYesJan 27, 2026
CVE-2024-39917CRITICAL9.8
  • xrdpxrdp
  • xrdp-devel
NoYesJul 12, 2024
CVE-2022-23493CRITICAL9.1
  • xrdpxrdp
  • libpainter0
NoYesDec 09, 2022
CVE-2023-42822MEDIUM6.5
  • xrdpxrdp
  • xrdp
NoYesSep 27, 2023
CVE-2023-40184MEDIUM6.5
  • xrdpxrdp
  • xrdp
NoYesAug 30, 2023

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management