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.
Severity (CVSS)
| Base score | 7.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-807 — CWE-807: Reliance on Untrusted Inputs in a Security Decision
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mcdope | pam_usb | < 0.9.3 [affected] |
References
- https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g (x_refsource_CONFIRM)
- https://github.com/mcdope/pam_usb/issues/410 (x_refsource_MISC)
- https://github.com/mcdope/pam_usb/pull/417 (x_refsource_MISC)
- https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f (x_refsource_MISC)
- https://github.com/mcdope/pam_usb/releases/tag/0.9.3 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 11 Nov 2026 08:04 UTC.