CVE-2026-64666
published high CVSS 3.1 · 7.1pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mcdope | — | pam_usb< 0.9.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mcdope | pam_usb | < 0.9.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-807 CWE-807: Reliance on Untrusted Inputs in a Security Decision
References
5Provider assertions
2GitHub_M · cna
pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6bb5dab598ab80af4483ec92c20c6e50944e0d0c183f8e2bb6a4451a1628503a
- Ingested
- 13 Nov 2026, 17:09:40 UTC
- Source record
- Official CVE record