Skip to main content

pam_usb CVE-2026-48792

| EUVDEUVD-2026-32647 MEDIUM
Detection of Error Condition Without Action (CWE-390)
2026-05-27 GitHub_M
4.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privileged local account
  2. Delivery
    Initiate pam_usb-gated authentication (login/sudo/SSH)
  3. Exploit
    EACCES errors silently swallowed in evdev.c during /dev/input/event* scan
  4. Execution
    pusb_has_virtual_input_device() returns false negative
  5. Persist
    local.c proceeds without hardware token denial
  6. Impact
    Authentication 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pam_usb < 0.9.1

Affected Packages

euvd pam_usb fix: 0.9.1

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

Vendor (GitHub_M) PRIMARY 4.4 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
May 27, 2026 - 22:04 EUVD

DescriptionCVE.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

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-48064 HIGH
8.1 May 27

Authentication bypass in pam_usb before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authenti

CVE-2026-64669 HIGH
7.4 Nov 11

pam_usb versions 0.8.0 through 0.9.2 fail to recognize compressed-notation IPv6 addresses when evaluating the optional d

CVE-2026-64668 HIGH
7.4 Nov 11

The deny_remote safeguard in pam_usb fails open on link-local IPv6 sessions, causing a remote login to be classified as

CVE-2026-64666 HIGH
7.1 Nov 11

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

CVE-2026-47272 HIGH
7.1 May 27

Authentication bypass in pam_usb prior to 0.9.0 lets a local user defeat the USB hardware-authentication factor by delet

CVE-2026-48981 MEDIUM
6.7 Jun 18

XXE injection in pam_usb prior to 0.9.2 enables an attacker with write access to the root-owned configuration file to tr

CVE-2026-48065 MEDIUM
6.7 May 27

Heap buffer overflow in pam_usb prior to 0.9.1 allows a local attacker with high privileges to corrupt heap memory on 32

CVE-2026-47273 MEDIUM
6.5 May 27

XPath injection in pam_usb prior to 0.9.0 allows unauthenticated remote attackers to manipulate device-verification quer

CVE-2026-48980 MEDIUM
6.3 Jun 18

Environment variable injection in pam_usb prior to version 0.9.2 allows a local authenticated user to bypass hardware US

CVE-2026-47274 MEDIUM
6.3 May 27

PATH hijacking in pam_usb helper tools prior to version 0.9.0 allows a local low-privileged attacker who can manipulate

CVE-2026-48982 MEDIUM
5.8 Jun 18

Non-atomic one-time pad file creation in pam_usb prior to 0.9.2 exposes the core replay-prevention mechanism to a local

CVE-2026-48983 MEDIUM
5.8 Jun 18

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy