Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to local account with valid credentials
-
DeliveryDelete own ~/.pamusb/device.pad file
-
Exploitpusb_pad_compare() returns non-fatal failure
-
ExecutionSystem-side USB pad never enforced
-
ImpactAuthenticate without physical USB device
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that pam_usb (version < 0.9.0) is configured in the PAM stack as a hardware authentication factor, and that the attacker is a local user with an existing account and the ability to read/write their own home directory (PR:L). The concrete prerequisite from the description is the deletion or unreadability of the victim/attacker's own ~/.pamusb/device.pad, which triggers the non-fatal failure path in pusb_pad_compare(); the description further limits this to 'certain code paths', meaning the specific PAM configuration determines whether the failure is actually treated as non-fatal. Limiting factors: exploitation is local only (AV:L), the actor must already possess valid low-privilege credentials, and systems not using pam_usb at all are unaffected; the impact is restricted to bypassing the USB device factor for the account whose pad is removed. |
| Impact | The CVSS 3.1 base score is 7.1 with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, indicating a local, low-complexity attack requiring low privileges and no user interaction, with high confidentiality and integrity impact and no availability impact. This is internally consistent with the description: the actor is a local user with their own account. The practical severity depends heavily on deployment - pam_usb is a defense-in-depth/second-factor control, so the real-world impact is the silent loss of the hardware factor (effectively downgrading to single-factor) rather than a remote takeover. EPSS data was not provided and this CVE is not listed in CISA KEV, so there is no public exploit identified at time of analysis; SSVC decision data was likewise not supplied. The attack is highly automatable and trivially reliable (delete one file), but exploitation is limited to users who already hold valid local credentials and are willing to weaken their own account's authentication, which constrains its appeal to insider/persistence or post-compromise scenarios rather than initial access. |
| Exploit ScenarioDerived | A logged-in employee who is required to plug in a registered USB key to authenticate (e.g., for sudo or login) deletes their own ~/.pamusb/device.pad and then authenticates successfully without ever inserting the device, quietly removing the hardware factor. This enables persistent passwordless-of-the-second-factor access from that account or sets up convenient re-entry without the token. No public proof-of-concept is identified at time of analysis, though the steps require only standard local file operations. |
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.0 lets a local user defeat the USB hardware-authentication factor by deleting their own ~/.pamusb/device.pad file. The flawed pusb_pad_compare() check in src/pad.c only confirmed the user-side pad was readable and treated its absence as a non-fatal failure in certain code paths, so authentication succeeded without the physical USB device ever being verified. There is no public exploit identified at time of analysis, but the technique is trivial - a single file deletion by the account owner.
RemediationAI
Vendor-released patch: 0.9.0 - upgrade pam_usb to 0.9.0 or later, which enforces that the system-side pad on the USB device is present and readable rather than treating a missing user-side pad as non-fatal; see https://github.com/mcdope/pam_usb/security/advisories/GHSA-vx6f-rrqr-j87c. If you cannot upgrade immediately, treat pam_usb as a non-authoritative factor: in /etc/pam.d configure the pam_usb line as 'required' (not 'sufficient') and pair it with a mandatory password/primary factor so that bypassing the USB check alone cannot grant access; the trade-off is that legitimate USB failures will then block login. As an additional compensating control, monitor for deletion or absence of ~/.pamusb/device.pad files (e.g., via auditd file watches) and alert on it, accepting that this is detective rather than preventive. Avoid relying on pam_usb as a sole or 'sufficient' authentication mechanism 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 PAM (Pluggable Authentication Modules) module for Linux that turns an ordinary removable USB device into a hardware authentication factor. It works by storing a matching 'pad' on both sides: a user-side pad at ~/.pamusb/device.pad in the user's home directory and a system-side pad written to the USB device itself; successful authentication is supposed to require both to be present and to match. The CPE cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:* identifies the affected component as the mcdope-maintained pam_usb package across all versions below the fix. The root cause maps to CWE-287 (Improper Authentication): pusb_pad_compare() verified only that the user-controlled pad could be read and, when it could not, returned a result that downstream logic treated as non-fatal, so the system-side pad on the USB device was never enforced as a precondition for success.
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
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, the pusb_pad_compare() function in src/pad.c only verified that the user-side pad (~/.pamusb/device.pad) could be read, but did not enforce that the system-side pad (the pad file on the USB device) was also present and readable. If the user-side pad was deleted or unreadable, the function returned a failure that was treated as non-fatal in certain code paths, allowing authentication to succeed without the USB device being verified. A local user can delete their own ~/.pamusb/device.pad to remove the USB device requirement and authenticate without the physical device. This vulnerability is fixed in 0.9.0.
Executive ViewAI
pam_usb prior to version 0.9.0 contains an authentication bypass that allows local users to disable hardware-based multi-factor authentication by deleting a single configuration file, with no public exploit currently identified. This vulnerability directly undermines the security controls protecting user account access for any organization deploying pam_usb for hardware authentication. Affected systems remain at risk of account compromise without immediate mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy filesystem monitoring and alerting for deletion/modification of ~/.pamusb/device.pad across all affected systems; (2) implement OS-level access controls preventing local user deletion of authentication credential files; (3) restrict remote access mechanisms (SSH keys, RDP) for accounts using pam_usb, enforcing additional authentication factors; (4) consider disabling pam_usb and implementing alternative authentication until patched; (5) maintain active monitoring of vendor channels for 0.9.0 release.
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.
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
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-32653
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB