{"id":"CVE-2026-64666","state":"PUBLISHED","title":"pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset","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.","publishedAt":"2026-11-11T03:51:12.232Z","updatedAt":"2026-11-13T17:04:04.444Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["mcdope pam_usb"],"affected":[{"vendor":"mcdope","product":"pam_usb","versions":[{"version":"< 0.9.3","status":"affected"}]}],"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"],"weaknesses":["CWE-807"],"ingestedAt":"2026-11-13T17:10:05.950Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64666.json","commit":"fc7ecf23ecb0bc160b254d7d36b453c067c7184e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64666","state":"PUBLISHED","datePublished":"2026-11-11T03:51:12.232Z","dateUpdated":"2026-11-13T17:04:04.444Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-20T17:12:12.891Z"},"containers":{"cna":{"title":"pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset","descriptions":[{"lang":"en","value":"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":[{"vendor":"mcdope","product":"pam_usb","versions":[{"version":"< 0.9.3","status":"affected"}]}],"references":[{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g","name":"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","name":"https://github.com/mcdope/pam_usb/issues/410","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/pull/417","name":"https://github.com/mcdope/pam_usb/pull/417","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f","name":"https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/releases/tag/0.9.3","name":"https://github.com/mcdope/pam_usb/releases/tag/0.9.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-807","lang":"en","description":"CWE-807: Reliance on Untrusted Inputs in a Security Decision","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-11T03:51:12.232Z"},"source":{"advisory":"GHSA-ffx6-xjp6-x33g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-13T17:03:41.986185Z","id":"CVE-2026-64666","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-13T17:04:04.444Z"}}]}}}