CVE-2026-64666
pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset
Mitigation
- Upgrade pam_usb to 0.9.3 or later.
Who should check
- Anyone running mcdope pam_usb < 0.9.3
Vulnerability facts
- Affected
- mcdope pam_usb < 0.9.3
- Fixed in
- mcdope pam_usb 0.9.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 6, 2026-11-28)
- CWE
- CWE-807
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| mcdope pam_usb | < 0.9.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-64666. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-64666.md Affected: mcdope pam_usb < 0.9.3 Fixed in: mcdope pam_usb 0.9.3 Steps: 1. Search this machine and project for mcdope pam_usb: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-64666 being exploited?
There is no confirmed exploitation: CVE-2026-64666 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-64666?
High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-64666?
mcdope pam_usb < 0.9.3.
Is there a fix for CVE-2026-64666?
Yes. Fixed in mcdope pam_usb 0.9.3. Upgrade pam_usb to 0.9.3 or later.
How do I check if I'm affected by CVE-2026-64666?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More mcdope vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 7.4 | CVE-2026-64669 pam_usb: deny_remote bypassed by compressed IPv6 addresses in pusb_tmux_has_remote_clients | mcdope | EPSS 37% | |
| MEDIUM 4.4 | CVE-2026-64667 pam_usb: Heap out-of-bounds read in pusb_get_tty_from_display_server cmdline scan | mcdope | EPSS 4% | |
| HIGH 7.4 | CVE-2026-64668 pam_usb: deny_remote bypassed by zone-indexed IPv6 addresses (fe80::1%eth0) in pusb_tmux_has_remote_clients | mcdope | EPSS 37% |