Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged local account
-
DeliveryInitiate pam_usb-gated authentication (login/sudo/SSH)
-
ExploitEACCES errors silently swallowed in evdev.c during /dev/input/event* scan
-
Executionpusb_has_virtual_input_device() returns false negative
-
Persistlocal.c proceeds without hardware token denial
-
ImpactAuthentication succeeds without USB token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error detection with action
|
| Exploitation Conditions | Exploitation requires local access to the target system with at minimum a low-privileged account (CVSS PR:L), confirmed by the AV:L/PR:L vector. The specific triggering condition is that the process executing pam_usb authentication must encounter EACCES errors when attempting to open /dev/input/event* device nodes - this can occur under restrictive udev device permissions, SELinux/AppArmor enforcement profiles, or hardened system configurations that limit device node access for non-root processes. pam_usb must be actively configured in the PAM stack for the targeted service (e.g., login, sshd, sudo). Exploitation is limited by the requirement for existing local presence on the system; remote unauthenticated attackers cannot exploit this directly. The vulnerability is also limited to the pam_usb hardware-token check specifically - other PAM module factors (passwords, etc.) in the stack are unaffected by this flaw. |
| Impact | The CVSS 3.1 base score of 4.4 (Medium) reflects a local attack vector (AV:L), low attack complexity (AC:L), low privileges required (PR:L), no user interaction (UI:N), and a limited confidentiality and integrity impact (C:L/I:L). The local attack vector significantly constrains exploitability - an attacker must already have a foothold on the target system and be subject to a pam_usb-enforced login context. No EPSS score was provided in the available intelligence, and the vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation. The real-world risk is narrowly scoped: systems using pam_usb as a mandatory second factor for local or SSH logins could have that control silently bypassed under permission configurations that restrict PAM process access to /dev/input/event* nodes. The integrity impact (I:L) reflects the ability to authenticate without a valid hardware token. The confidentiality impact (C:L) reflects access to data the token was meant to gate. This is a genuine security control failure but not a high-severity RCE - priority should be elevated for any system where pam_usb is a sole or primary authentication gate. |
| Exploit ScenarioDerived | A local user with a standard unprivileged account on a Linux system enforcing pam_usb hardware authentication triggers a login attempt (console, SSH, or sudo). If the PAM process scanning /dev/input/event* encounters EACCES errors - whether due to restrictive udev rules, SELinux/AppArmor policy, or tight device permissions - pusb_has_virtual_input_device() silently returns 0, the authentication logic interprets this as no virtual devices present, and the session proceeds without requiring the physical USB token. No public exploit code has been reported; the attack relies solely on triggering the permission-denied code path in a default or misconfigured permission environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Authentication bypass in pam_usb prior to 0.9.1 allows a local low-privileged user to circumvent hardware token requirements by exploiting silent EACCES error suppression in the virtual input device scanner. When the PAM module's evdev.c component fails to open /dev/input/event* nodes due to permission errors, it returns a false negative indicating no virtual devices are present, and the caller in local.c proceeds with authentication as if the hardware check passed cleanly. No public exploit has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Vendor-released patch: 0.9.1. Upgrade pam_usb to version 0.9.1 or later, which resolves the silent EACCES suppression in src/evdev.c so that permission errors during /dev/input/event* scanning cause authentication to fail securely rather than proceed with a false negative. The advisory is available at https://github.com/mcdope/pam_usb/security/advisories/GHSA-pvrg-chgw-x42c. If an immediate upgrade is not possible, a compensating control is to ensure that the user or process invoking pam_usb has appropriate read permissions on /dev/input/event* nodes, so that EACCES errors cannot occur and the false-negative condition is avoided - however, this trade-off may broaden device access beyond intended scope and should be evaluated against local security policy. Alternatively, temporarily removing pam_usb from the PAM stack and substituting another second-factor mechanism eliminates the bypass risk at the cost of losing USB hardware authentication until patched.
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 Linux PAM (Pluggable Authentication Modules) module developed by mcdope that enforces hardware-based two-factor authentication using removable USB media. The vulnerability resides in src/evdev.c within the pusb_has_virtual_input_device() function, which iterates over /dev/input/event* character device nodes to detect virtual input devices (a common indicator of automated or spoofed login attempts). When open() calls on these nodes return EACCES, the error is caught but no corrective action is taken - matching CWE-390 (Detection of Error Condition Without Action). The function then returns 0, semantically equivalent to 'no virtual devices found,' even though the scan was entirely incomplete. The caller in src/local.c cannot distinguish this permission-failure state from a legitimate clean scan result, and therefore continues the authentication flow rather than failing securely. Affected CPE: cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:* (all versions prior to 0.9.1).
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:L/I:L/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/evdev.c silently ignores EACCES errors when opening /dev/input/event* nodes, causing pusb_has_virtual_input_device() to return 0 (no virtual devices found) even when every open() call failed due to insufficient permissions. The caller in src/local.c cannot distinguish a clean absence of virtual devices from a permission-denied scan, and acts on the false negative by continuing authentication without denying. This vulnerability is fixed in 0.9.1.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Authentication bypass in pam_usb before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authenti
pam_usb versions 0.8.0 through 0.9.2 fail to recognize compressed-notation IPv6 addresses when evaluating the optional d
The deny_remote safeguard in pam_usb fails open on link-local IPv6 sessions, causing a remote login to be classified as
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
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
EUVD-2026-32647
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB