Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal access to setuid PAM host
-
DeliveryClear XRDP_SESSION from environment
-
Exploitgetenv() bypasses env-based XRDP deny
-
Executionpam_usb treats remote session as local
-
ImpactAuthenticate via USB hardware token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Trusted input validation
|
| Exploitation Conditions | Requires pam_usb version <= 0.9.2 built with the XRDP env-var deny block, loaded via pam_usb.so into a setuid PAM host, where the calling (low-privilege, local) user controls the environment passed to that host; the attacker simply unsets XRDP_SESSION before invocation. Limiting factors: exploitation is local only (AV:L) and needs an authenticated/low-privilege user (PR:L) able to manipulate the host environment, AND the defeat is partial - the other remote-detection paths (rmsvc, evdev, loginctl, utmp) can still catch the session, so this condition alone does not guarantee access. A deployment that does not rely on the env-based XRDP check, or that has upgraded to 0.9.3, is not affected. |
| Impact | Signals are moderate and internally consistent rather than alarming. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, 7.1 HIGH) describes a LOCAL, low-complexity, low-privilege authentication-bypass - not a remotely reachable flaw despite the HIGH severity. The input provides no EPSS score, no CISA KEV entry, and no confirmed working exploit code; the listed references are the GHSA advisory, issue #410, PR #417, the fix commit, and the 0.9.3 release - remediation artifacts, not a PoC. The vuln.today decision label is 'this_week' (not act_now/emergency), aligning with a real-but-non-urgent priority. Importantly, the vendor itself states this is only a PARTIAL bypass: clearing XRDP_SESSION defeats the single env-based XRDP-deny check, but other remote-detection signals (rmsvc, evdev, loginctl, utmp) may still catch the session, so successful end-to-end bypass is not guaranteed. Net: a legitimately HIGH-scored local hardening defect in a niche product, not a widespread or weaponizable threat. No EPSS/KEV data is available to confirm or contradict exploitation likelihood - absence of those feeds is a gap, not evidence of safety. |
| Exploit ScenarioDerived | A user who can invoke a setuid PAM host that loads pam_usb.so controls the environment passed to it, and unsets XRDP_SESSION before invocation; pam_usb's pusb_local_login then reads the variable with plain getenv(3) and sees it absent, so the explicit XRDP-deny rule never fires and the session is treated as local. No packaged public exploit is referenced, but the mechanism is fully described in the advisory and the one-line trigger is trivial. The remaining remote-detection signals may still block the session, so the bypass is not guaranteed on its own. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
pam_usb through 0.9.2 can be pushed past its explicit XRDP deny rule by a local user who simply unsets the XRDP_SESSION variable before invoking a setuid PAM host that loads pam_usb.so, because the check in pusb_local_login reads the variable with plain getenv(3) while neighbouring environment reads use secure_getenv(3). Exploitation is local and requires a low-privilege authenticated account able to control the host's environment (CVSS 3.1: AV:L/AC:L/PR:L/UI:N, 7.1 High), and the defeat is partial - the rmsvc, evdev, loginctl and utmp remote-detection paths may still flag the session, so a successful unset does not by itself guarantee authentication bypass. No public exploit code was identified at time of analysis and the issue is not in CISA KEV; publication priority is 'this_week' and vendor-released patch 0.9.3 is available.
RemediationAI
Upgrade to pam_usb 0.9.3, the vendor-released fix (https://github.com/mcdope/pam_usb/releases/tag/0.9.3), which replaces getenv(3) with secure_getenv(3) for XRDP_SESSION in src/local.c and additionally adds 'xrdp' to the process-name list used by the remote-service detection in src/rmsvc.c, so the xrdp session can be caught without relying on the environment variable. If the upgrade cannot be applied immediately, the practical compensating control indicated by the evidence is to treat any deployment that depends solely on the XRDP_SESSION environment check as unprotected for this case: remote-service detection via rmsvc, evdev, loginctl and utmp must be confirmed active and functional, accepting that these signals are heuristic and may not match every xrdp configuration, and that this makes the check dependent on process and session visibility rather than a deterministic deny. Deployments that do not rely on the env-based XRDP check are not affected and need no workaround beyond normal patch cadence; no other vendor-specified mitigation is described in the available sources.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pam_usb is a PAM module that grants hardware-based authentication on Linux using removable media. The affected code path lives in src/local.c inside pusb_local_login(), which inspects environment variables to decide whether a session is remote; every other environment consumer in that same function already uses glibc's secure_getenv(3), which returns NULL when the process is running with elevated privilege (setuid/setgid or a capability-bearing binary), precisely to stop user-controlled environment data from influencing a privileged decision. The XRDP_SESSION read was the lone exception, using plain getenv(3), so when pam_usb.so is loaded into a setuid PAM host, the calling user's environment is trusted and an attacker can remove the variable to skip the XRDP deny branch. This is CWE-807 (Reliance on Untrusted Inputs in a Security Decision): a security policy decision keyed on data the attacker supplies. The upstream fix is minimal - swapping getenv for secure_getenv - and is accompanied by hardening of the file-system-based detection: 'xrdp' was added to the rdp_processes list scanned by pusb_has_active_remote_service() in src/rmsvc.c, with a new cmocka unit-test fixture (tests/unit/c/fixtures/proc_xrdp/12345/cmdline) exercising xrdp process detection.
Know when Pam Usb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Local user controlling the setuid host's environment (AV:L, PR:L) performs a single trivial env unset (AC:L); bypassing the auth gate yields high confidentiality/integrity impact with no availability effect.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-807: Reliance on Untrusted Inputs in a Security Decision.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-64666 in pam_usb up to 0.9.2 enables a local authenticated attacker to bypass the module's XRDP deny rule by unsetting the XRDP_SESSION environment variable, potentially undermining remote session restrictions. This high-severity flaw (CVSS 7.1) requires low privileges but could allow unauthorized access to systems that rely on pam_usb for authentication, impacting overall security posture. Leadership should prioritize patching to maintain the integrity of access controls and prevent potential lateral movement.
Vendor-released patch: 0.9.3
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in pam_usb Remote Detection and Memory Flaws
View all 4Authentication bypass in pam_usb before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authenti
Authentication bypass in pam_usb prior to 0.9.0 lets a local user defeat the USB hardware-authentication factor by delet
XXE injection in pam_usb prior to 0.9.2 enables an attacker with write access to the root-owned configuration file to tr
Heap buffer overflow in pam_usb prior to 0.9.1 allows a local attacker with high privileges to corrupt heap memory on 32
XPath injection in pam_usb prior to 0.9.0 allows unauthenticated remote attackers to manipulate device-verification quer
Environment variable injection in pam_usb prior to version 0.9.2 allows a local authenticated user to bypass hardware US
PATH hijacking in pam_usb helper tools prior to version 0.9.0 allows a local low-privileged attacker who can manipulate
Non-atomic one-time pad file creation in pam_usb prior to 0.9.2 exposes the core replay-prevention mechanism to a local
Symlink race condition in pam_usb prior to 0.9.2 allows a local attacker to redirect one-time pad files to an attacker-c
Concurrent PAM invocations in pam_usb prior to 0.9.1 expose a process-wide static pointer race condition in src/log.c, w
EUVD-2026-123131
NVD
CVE.org
EPSS
GitHub
Exploit-DB