{"id":"CVE-2026-64666","aliases":["CVE-2026-64666"],"related":[],"kind":"vulnerability","state":"published","title":"pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-11T03:51:12.232Z","modified":"2026-11-13T17:17:34.563Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-807"],"affected":[{"ranges":[{"version":"< 0.9.3","status":"affected"}],"vendor":"mcdope","product":"pam_usb","source":"cvelist"}],"references":[{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcdope/pam_usb/issues/410","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcdope/pam_usb/pull/417","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mcdope/pam_usb/releases/tag/0.9.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-13T17:03:41.986Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64666","url":"https://www.cve.org/CVERecord?id=CVE-2026-64666","licence":"CVE Terms of Use","modified":"2026-11-13T17:04:04.444Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64666","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64666","licence":"Public domain","modified":"2026-11-13T17:17:34.563Z"}],"updatedAt":"2026-11-25T22:59:50.317Z","epss":{"score":0.00205,"percentile":0.11039,"date":"2026-12-01T12:00:22.000Z"}}