Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain enrolled USB device
-
DeliveryConnect over IPv4 SSH to :: listener
-
Exploitutmpx logs IPv4-mapped IPv6 address
-
Executiondeny_remote check reads word 0 as zero
-
ImpactSession treated as local, authentication granted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following concrete preconditions: the target runs pam_usb older than 0.9.0 with deny_remote=true configured; the OpenSSH daemon is bound to the IPv6 wildcard :: with AddressFamily any (the stock Debian/Ubuntu setup); the attacker connects over IPv4 so the session is recorded in utmpx as an IPv4-mapped IPv6 address (::ffff:x.x.x.x) with ut_addr_v6[0]==0; and the attacker must possess or clone a USB device already registered for the target user. Limiting factors that reduce realistic risk: native-IPv6 sshd binds or AddressFamily inet configurations do not exhibit the mapped-address behavior and are not affected; deployments that do not set deny_remote gain nothing being bypassed; and the requirement to hold an enrolled physical token confines this to insiders or attackers with prior physical/device access rather than arbitrary internet attackers, despite the AV:N vector. |
| Impact | The CVSS 3.1 base score is 7.4 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N): network reachable, no prior privileges or user interaction, high confidentiality and integrity impact, no availability impact, with High attack complexity reflecting the required non-default-but-common conditions. The most important caveat is a mismatch between the CVSS vector and the real prerequisite: AV:N/PR:N suggests a purely remote, credential-less attack, but the description makes clear the attacker must physically possess (or clone) a USB device that has already been enrolled for the target account, and the target must run a vulnerable pam_usb with deny_remote=true plus an IPv6-wildcard sshd - so this is best read as a defense-in-depth control failing for an insider/physical-access adversary rather than an open remote takeover. No EPSS score, SSVC decision, KEV entry, or POC was provided in the source data; there is no public exploit identified at time of analysis and it is not listed as actively exploited. Net assessment: a real and credible authentication-policy bypass that defeats the specific protection deny_remote was meant to provide, but its practical reach is gated by device possession and configuration, making it a targeted-risk issue rather than a mass-exploitable one. |
| Exploit ScenarioDerived | An attacker who has obtained or duplicated a USB token previously enrolled for a target account opens an SSH session over IPv4 to an Ubuntu server whose sshd listens on the IPv6 wildcard. Because the connection is logged as an IPv4-mapped IPv6 address, pam_usb's deny_remote check skips its remote-detection logic and treats the session as a local terminal, so the USB-presence factor succeeds and the attacker logs in despite the policy meant to forbid exactly this. No public proof-of-concept is identified at time of analysis, and the high attack complexity reflects the needed device possession and specific sshd configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Authentication-context bypass in pam_usb before 0.9.0 lets a person holding an enrolled USB device authenticate over SSH while the module's deny_remote protection wrongly classifies the connection as a local terminal session. The root cause is an incomplete check of the utmpx ut_addr_v6 field that misreads IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) as having no remote address, which is the normal way Debian and Ubuntu record incoming IPv4 SSH connections when sshd listens on the IPv6 wildcard. There is no public exploit identified at time of analysis and the CVE is not in CISA KEV, but the operation needed to trigger it is trivial once the operator possesses a registered token.
RemediationAI
Vendor-released patch: 0.9.0 - upgrade pam_usb to 0.9.0 or later, which corrects pusb_is_tty_local() to check all four words of ut_addr_v6 (fix commit https://github.com/mcdope/pam_usb/commit/804fe24eae3d742d8be05fd015e36abc3c7d94e5; advisory https://github.com/mcdope/pam_usb/security/advisories/GHSA-jmmj-qhrq-w45g). If you cannot upgrade immediately, a targeted compensating control is to stop incoming IPv4 connections from being recorded as IPv4-mapped IPv6: set AddressFamily inet in sshd_config (or bind sshd to explicit IPv4 ListenAddress entries) so IPv4 sessions are logged in ut_addr_v6[0] and correctly detected as remote - the trade-off is loss of native IPv6 SSH connectivity on that host. Alternatively, restrict or disable remote SSH access to systems relying on pam_usb (for example, limit sshd exposure with firewall rules or move the USB factor behind a non-network login path) so the deny_remote gap cannot be reached; this reduces convenience and remote administration capability. Do not rely on deny_remote alone on vulnerable versions, as it does not block the authentication in this scenario.
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 authenticates Linux users by the presence of a registered removable USB device, with an optional deny_remote setting intended to refuse such hardware-only logins for non-local sessions. To decide whether a session is remote, pusb_is_tty_local() in src/local.c inspects the utmpx record's ut_addr_v6, a 128-bit field holding the peer address as four 32-bit words. The guard was written as if (utent->ut_addr_v6[0] != 0), examining only the first word; this works for native IPv4 (stored in word 0) and most native IPv6, but fails for IPv4-mapped IPv6 addresses where the IPv4 octets land in ut_addr_v6[3] and word 0 is zero. When OpenSSH runs with AddressFamily any and binds to :: (the default on Debian/Ubuntu), inbound IPv4 connections are logged to utmpx in this mapped form, so the guard returns false and the entire remote-detection branch is skipped. This is an access-control flaw (CWE-284, Improper Access Control): the security decision relies on a non-robust parse of the address structure. The 0.9.0 fix tests all four words (ut_addr_v6[0] || [1] || [2] || [3]) so any non-zero address word marks the session remote.
Know when the next one hits your stack
- 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:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb's deny_remote feature checks utmpx ut_addr_v6 to detect whether an authentication request originates from a remote session. The outer guard was if (utent->ut_addr_v6[0] != 0), which only tests the first 32-bit word of the 128-bit address field. IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) store the IPv4 address in ut_addr_v6[3] with ut_addr_v6[0] == 0. On systems where the SSH daemon listens on :: (IPv6 wildcard) with AddressFamily any -- common on Ubuntu and Debian -- incoming IPv4 connections are recorded in utmpx as IPv4-mapped IPv6 addresses. The outer check evaluates to false, the remote-detection block is skipped entirely, and the session is treated as local. deny_remote=true does not block the authentication. An attacker with physical access to a registered USB device can authenticate over SSH on an affected system as if they were sitting at a local terminal, bypassing the deny_remote restriction. This vulnerability is fixed in 0.9.0.
Executive ViewAI
pam_usb versions before 0.9.0 contain an authentication bypass allowing users with enrolled USB tokens to gain remote SSH access when security controls should restrict access to local connections only. While no public exploit identified at time of analysis, the required operation is trivial for any token holder. Organizations using pam_usb face significant unauthorized access risk affecting system security and sensitive data.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Firewall controls-restrict SSH access to trusted IP ranges; require VPN access for remote SSH connections; (2) Configuration-disable pam_usb remote authentication in sshd config if remote SSH is not operationally necessary; (3) Authentication-layer SSH certificate-based authentication or require additional hardware security factors in addition to USB tokens; (4) Detection-enable detailed SSH connection logging and configure real-time alerts for access policy violations.
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.
EUVD-2026-32656
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB