Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privileged account
-
DeliveryPlace malicious binary in attacker-controlled directory
-
ExploitPrepend directory to PATH environment
-
ExecutionTrigger pam_usb helper tool execution
-
PersistMalicious binary substituted for legitimate one
-
ImpactRead keyring credentials or execute arbitrary code
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | The attacker must hold an existing low-privileged local account on the target system (PR:L confirmed by CVSS vector). They must be able to place a malicious executable into a directory they control and influence the PATH environment variable at the moment one of the three pam_usb helper tools (pamusb-check, pamusb-conf, or pamusb-keyring-unlock-gnome) is executed - either during a PAM authentication event or when a user or automated process invokes these tools directly. High attack complexity (AC:H) limits exploitation: the attacker cannot simply send a network packet; they must engineer the environment manipulation to coincide with tool execution. Exploitation is further limited to Linux systems where pam_usb is installed and actively used for authentication. Remote exploitation is categorically excluded by the local attack vector (AV:L). There is no requirement for user interaction (UI:N). The pamusb-keyring-unlock-gnome tool additionally required GNOME keyring to be in use, further narrowing the affected population for that specific attack path. |
| Impact | The CVSS 3.1 score of 6.3 (Medium) reflects a genuinely constrained attack surface: AV:L requires local system access, AC:H indicates the attacker must engineer specific environmental conditions (PATH manipulation timed to PAM authentication), PR:L requires an existing low-privileged account, and S:U confirms no scope change to other components. The C:H/I:H impact pair is significant but only realized if exploitation succeeds. No EPSS score was provided in the input data, making probabilistic exploitation assessment unavailable. The vulnerability is not listed in CISA KEV, and no public proof-of-concept exploit code has been identified. The realistic threat actor is a local unprivileged user who can write files to a directory they control and modify their own environment - for example, via a malicious shell rc file or a writable directory prepended to PATH before invoking a pam_usb tool. The AC:H rating appropriately captures that this requires timing and environmental control, not a simple one-shot remote attack. Overall: real but narrow risk, primarily relevant in multi-user Linux environments where pam_usb is deployed for authentication. |
| Exploit ScenarioDerived | A local user with an unprivileged shell account on a system using pam_usb for authentication creates a malicious executable named |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
PATH hijacking in pam_usb helper tools prior to version 0.9.0 allows a local low-privileged attacker who can manipulate the process environment to substitute malicious binaries for those called by pamusb-check, pamusb-conf, and pamusb-keyring-unlock-gnome, resulting in high confidentiality and integrity impact. The root cause is CWE-427 (Uncontrolled Search Path Element): all three tools resolved external binaries - including id, whoami, pidof, gnome-keyring-daemon, and pamusb-check itself - through the attacker-controllable PATH variable rather than hardcoded absolute paths. No public exploit code exists and this vulnerability is not listed in CISA KEV at time of analysis.
RemediationAI
Upgrade pam_usb to version 0.9.0, which resolves the PATH hijacking across all three affected helper tools via commits 1ee8745920388df48d001a8e61ba629071557937, 52a1fd6413b7ffcc1a5b58ce432be42e7bf0dbd0, and 993e73d8bebb1d8e62677388de3402b6ec36b600 (see https://github.com/mcdope/pam_usb/security/advisories/GHSA-pp29-w28g-r9h9). If upgrading immediately is not feasible, restrict which local user accounts are permitted to invoke pam_usb helper tools by tightening PAM configuration and file permissions on the helper scripts (chmod 0755 owned by root). Additionally, enforce a controlled, read-only PATH for PAM sessions by setting PATH explicitly in the PAM configuration or in /etc/environment to a minimal set of trusted directories, reducing the attacker's ability to prepend malicious directories. Note that path-restriction workarounds do not address all exposure vectors and are not a substitute for patching. Systems where only a single trusted user runs pam_usb tools face substantially reduced risk from this vulnerability.
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 module that implements hardware-based authentication using removable USB storage media, maintained by mcdope (CPE: cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:*). The affected tools are shell scripts and C code that invoke external utilities at runtime. CWE-427 (Uncontrolled Search Path Element) describes the root cause: when a program uses a user-supplied or environment-controlled search path to locate executables, a malicious binary placed earlier in PATH can be executed in place of the intended one. The commit diffs confirm that pamusb-keyring-unlock-gnome called binaries such as pamusb-check, id, whoami, pidof, gnome-keyring-daemon, stat, awk, sed, head, kill, and logger without absolute paths. The fix for all three affected tools hardcodes absolute paths (e.g., PAMUSB_CHECK=/usr/bin/pamusb-check, ID=/usr/bin/id, GNOME_KEYRING_DAEMON=/usr/bin/gnome-keyring-daemon) so that PATH manipulation cannot redirect binary resolution. The fix also eliminates a secondary issue in pamusb-keyring-unlock-gnome where the keyring password file could be sourced as shell code; it now reads the value via sed without executing the file.
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:H/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, multiple pam_usb helper tools resolved external binaries through the PATH environment variable rather than using absolute paths. An attacker who can influence the process environment during PAM authentication or tool execution could substitute malicious binaries. The affected tools are pamusb-check (src/tmux.c), pamusb-conf (tools/pamusb-conf), and pamusb-keyring-unlock-gnome (tools/pamusb-keyring-unlock-gnome). This vulnerability is fixed in 0.9.0.
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
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-32651
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB