# CVE-2026-64666: pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-11T03:51:12.232Z
- Modified: 2026-11-13T17:17:34.563Z
- Weaknesses: CWE-807
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mcdope pam_usb: < 0.9.3

## References

- <https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g>
- <https://github.com/mcdope/pam_usb/issues/410>
- <https://github.com/mcdope/pam_usb/pull/417>
- <https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f>
- <https://github.com/mcdope/pam_usb/releases/tag/0.9.3>

## Sources

- CVE List: [CVE-2026-64666](https://www.cve.org/CVERecord?id=CVE-2026-64666), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-64666](https://nvd.nist.gov/vuln/detail/CVE-2026-64666), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-64666 · Whole record: https://cve.day/CVE-2026-64666.json · Rebuilt by cve.day 2026-11-25T22:59:50.317Z
