pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 11, 2026
- Updated
- Nov 13, 2026
- Reserved
- Jul 20, 2026
Description
pam_usb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c reads XRDP_SESSION with plain getenv(3) at the head of pusb_local_login while every other env consumer in the same function uses secure_getenv(3). When pam_usb.so loads into a setuid PAM host, the calling user controls the environment passed in. Clearing XRDP_SESSION before invoking the host bypasses the explicit XRDP-deny rule. Other remote-detection signals (rmsvc, evdev, loginctl, utmp) may still catch the session, but the env-based detection alone is defeated. This issue has been patched in version 0.9.3.
| Product | Versions |
|---|---|
| pam_usb mcdope | < 0.9.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.1 High | GitHub_M |
Weaknesses
- CWE-807 Reliance on Untrusted Inputs in a Security Decision
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.