Skip to content
Heist/ feed
Back to feed
Low

Improper handling of session establishment errors in xrdp

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-40184
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:13 UTC · Revision 1

Source evidence

Improper handling of session establishment errors in xrdp

core-osv · Original source

Published 30 Aug 2023, 17:48 UTC

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.

osv:CVE-2023-40184
Complete source record
{
  "id": "c07508eaf0fbcfbaeae48a8b8baa3a8b1a31312b27f3005d73a19b7f39c94b24",
  "url": "https://osv.dev/vulnerability/CVE-2023-40184",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper handling of session establishment errors in xrdp",
    "summary": "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.",
    "evidence": "osv:CVE-2023-40184",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2023-40184",
      "aliases": [
        "CVE-2023-40184",
        "GHSA-f489-557v-47jq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/neutrinolabs/xrdp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4c3dd94ddec2ab565a5eb5b64aada97e90a7cb73"
                },
                {
                  "fixed": "a111a0fdfe2421ef600e40708b5f0168594cfb23"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:neutrinolabs:xrdp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.9.23"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a111a0fdfe2421ef600e40708b5f0168594cfb23"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.9.22.1",
            "v0.9.21.1",
            "v0.9.21",
            "v0.9.20",
            "v0.9.19",
            "v0.9.18.1",
            "v0.9.18",
            "v0.9.17",
            "v0.9.16",
            "v0.9.15",
            "v0.9.14",
            "v0.9.13.1",
            "v0.9.13",
            "v0.9.12",
            "v0.9.11",
            "v0.9.10",
            "v0.9.9",
            "v0.9.8",
            "v0.9.7",
            "v0.9.6",
            "v0.9.5",
            "v0.9.4",
            "v0.9.3.1",
            "v0.9.4.rc1",
            "v0.9.3",
            "v0.9.3.rc1",
            "v0.9.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40184.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.072981308Z",
      "provider": "osv",
      "references": [
        "https://github.com/neutrinolabs/xrdp/blame/9bbb2ec68f390504c32f2062847aa3d821a0089a/sesman/sesexec/session.c#L571C5-L571C19",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00018.html",
        "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/U5IXMQODV3OIJ7DRQBUQV7PUKNT7SH36/",
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/URO3FKTFBPNKFARAQBEJLI4MH6YS35P5/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40184.json",
        "https://github.com/neutrinolabs/xrdp/security/advisories/GHSA-f489-557v-47jq",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-40184",
        "https://github.com/neutrinolabs/xrdp/commit/a111a0fdfe2421ef600e40708b5f0168594cfb23"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-755"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40184.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-40184",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506556,
  "published_at": "2023-08-30T17:48:30.552+00:00"
}