Summary
A session isolation bypass in xrdp's Xvnc backend over UNIX domain sockets allows an authenticated local user to attach to another user's active desktop session.
When Xvnc is launched without sufficient authentication, a local attacker sharing the host can unauthorizedly view or control other users' RDP sessions under specific backend configurations.
Affected context
This vulnerability occurs in xrdp deployments that:
- Use the Xvnc backend specifically over UNIX domain sockets
- Allow multiple local users to maintain concurrent RDP sessions on the same host
- Rely on Xvnc's default launch configuration without additional per-session authentication
Installations using xorgxrdp or Xvnc over TCP sockets, or that implement independent session access controls, are not subject to the described weakness.
Exploit preconditions
- Attack surface: Local system environment where xrdp is installed and serving multiple user sessions
- Required access: Valid local account with the ability to authenticate and initiate an xrdp session
- Trigger point: Initialization of an xrdp session via the Xvnc backend over UNIX domain sockets when Xvnc is spawned without strong per-session authentication or binding
- Why exploitation is possible: The Xvnc process is launched with insufficient authentication and isolation, allowing a local attacker to attach to or interfere with another user's active desktop session via shared socket access
Why this happens
The underlying issue stems from inadequate enforcement of authentication and authorization when launching Xvnc sessions over UNIX domain sockets.
The backend configuration does not sufficiently bind Xvnc instances to a single authenticated user or enforce per-session access controls, enabling other local users to reuse existing socket-based connections.
This maps to CWE-287: Improper Authentication and CWE-306: Missing Authentication for Critical Function, as access to a critical resource—the remote desktop session—is not fully protected by a robust authentication layer.
Potential impact
- An attacker could view the graphical desktop of another user's active session.
- An attacker could control keyboard and mouse input for another user's session.
- An attacker could access sensitive data displayed or stored within the victim's desktop environment.
- An attacker could manipulate applications or system settings within another user's session, potentially leading to further compromise.
General mitigation guidance
Effective mitigation focuses on strengthening authentication and isolation around session backends:
- Prefer backends that provide strong, per-session authentication bindings (such as xorgxrdp or hardened Xvnc configurations).
- Ensure that each graphical desktop session is tightly bound to the initiating user's identity and cannot be attached to by other local accounts.
- Isolate session transport channels (including UNIX domain sockets) so they are only accessible to the owning user, using strict file permissions and OS-level access controls.
- Apply least-privilege principles for session processes, ensuring they do not share common access paths that different users can reuse.
- Incorporate secure defaults in configuration templates so administrators do not need to manually layer on basic authentication measures.
How teams detect issues like this
Organizations can detect and monitor for similar weaknesses by:
- Reviewing xrdp and Xvnc configurations for shared or world-accessible UNIX domain sockets or session endpoints.
- Using static or configuration analysis tools to flag session backends that lack explicit per-user authentication bindings.
- Incorporating security-focused code reviews around session initialization logic, checking for missing checks on user identity and ownership before attaching to display sessions.
- Enforcing policies that require authenticated binding between user identities and their session processes and that prohibit shared session transports.
- Monitoring system logs for unusual patterns such as multiple user identities interacting with the same display or session identifier.

