{"id":"CVE-2026-64666","published":"2026-11-11T03:51:12Z","modified":"2026-11-13T17:04:04Z","title":"pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset","vendor":"mcdope","product":"pam_usb","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00182,"percentile":0.0795,"provenance":"source"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"references":[{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mcdope/pam_usb/issues/410","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/pull/417","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/releases/tag/0.9.3","tags":["x_refsource_MISC"]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.59},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"mcdope","affectedVersions":[{"vendor":"mcdope","product":"pam_usb","versions":["< 0.9.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-13T17:03:41.986185Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-123131","exploited":false,"provenance":"source"}}