Skip to main content

pam_usb CVE-2026-48064

| EUVDEUVD-2026-32650 HIGH
Incorrect Authorization (CWE-863)
2026-05-27 GitHub_M
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Reach XDMCP-exposed display manager
  2. Delivery
    Initiate remote XDMCP session
  3. Exploit
    Bypass skipped PAM_RHOST check
  4. Execution
    Reach USB device authentication step
  5. Impact
    Obtain local session as remote client

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concrete conditions to coincide: (1) pam_usb must be configured with deny_remote=false (commonly set for display managers gdm-password or lightdm to bypass process/TTY heuristics); (2) the host must expose a remote authentication path that populates PAM_RHOST - specifically an XDMCP server (or sshd) reachable by the attacker; and (3) the pam_usb version must be prior to 0.9.1. Per CVSS PR:N the attacker needs no prior authentication and per UI:N no victim interaction. The principal limiting factor is that this is a non-default configuration: with the default deny_remote=true the PAM_RHOST check still runs and remote connections are rejected, and the AC:H rating acknowledges the dependence on this operator-introduced setting plus an exposed XDMCP listener, so hosts without remote display access are not reachable via this vector.

Impact

The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, score 8.1) describes a network-reachable, unauthenticated, no-user-interaction flaw with full CIA impact, but the AC:H (high attack complexity) is doing important work here: exploitation depends on a specific non-default operator configuration (deny_remote=false) combined with an exposed XDMCP/remote display path that populates PAM_RHOST. No EPSS score was provided in the input, so the statistical likelihood of exploitation cannot be quantified from available data. It is not in CISA KEV (no confirmed active exploitation) and no public exploit code was identified. The honest reading is that this is a genuinely serious authorization bug for the subset of deployments that both disable deny_remote and accept remote XDMCP, but the AC:H and the requirement for an administrator-induced misconfiguration significantly narrow the realistic attack surface - making it a high-severity-but-conditional issue rather than a broadly wormable, default-configuration threat. Defenders running default deny_remote=true are not affected by this specific gap.

Exploit ScenarioDerived

An attacker on a network segment that can reach a Linux host running an XDMCP-enabled display manager configured with pam_usb and deny_remote=false initiates a remote XDMCP session; because the PAM_RHOST rejection is skipped, the remote request reaches the USB device authentication step that should only ever serve local console users, enabling an authentication bypass to a local session. Given AV:N and PR:N, no prior credentials are needed, though the AC:H reflects that the attacker still depends on the victim's specific misconfiguration. No public proof-of-concept was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% 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 before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authentication step over XDMCP when an administrator has set deny_remote=false - a common tweak for display managers like gdm-password or lightdm. Because the PAM_RHOST remote-client check is gated inside the same deny_remote conditional, disabling deny_remote inadvertently disables the safeguard that rejects remote connections, so a genuine remote XDMCP session is treated like a local one. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the high CVSS (8.1) reflects full compromise of confidentiality, integrity, and availability if the attacker satisfies the configuration prerequisites.

RemediationAI

Upgrade pam_usb to version 0.9.1 or later, which moves/repairs the PAM_RHOST check so it is no longer bypassed by deny_remote (Vendor-released patch: 0.9.1; see https://github.com/mcdope/pam_usb/security/advisories/GHSA-w38v-cw9r-x9p6). If you cannot upgrade immediately, revert deny_remote back to true (the default) wherever it was disabled - the trade-off is that the process/TTY heuristics it relaxes may again interfere with some local display-manager sessions, so test gdm-password/lightdm logins afterward. As an additional compensating control, disable XDMCP on the display manager (e.g. unset Enable=true in the [xdmcp] section) and block the XDMCP UDP/177 port at the host or network firewall so remote display connections cannot reach the PAM stack at all; this removes remote login capability entirely, which is acceptable for hosts that should only allow local console sessions. Review the issue at https://github.com/mcdope/pam_usb/issues/348 for context on which services set PAM_RHOST.

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 Pluggable Authentication Module (PAM) for Linux that provides two-factor / hardware authentication using ordinary removable USB media as the token. The relevant logic lives in pusb_do_auth(), which is supposed to consult PAM_RHOST - a field populated by remote daemons such as sshd and XDMCP servers to record the connecting client's address - and refuse authentication when the request originates remotely. The deny_remote option exists to relax process/TTY heuristics for legitimate local display-manager sessions. The root cause maps to CWE-863 (Incorrect Authorization): the PAM_RHOST remote-source rejection is nested inside the if (opts.deny_remote) branch, so turning deny_remote off to accommodate gdm/lightdm also removes the only check that distinguishes a remote XDMCP client from a local console session, letting the remote request fall through to USB device authentication. The affected component per CPE is cpe:2.3:a:mcdope:pam_usb (the mcdope pam_usb project).

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 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
May 27, 2026 - 22:04 EUVD
CVE Published
May 27, 2026 - 19:59 nvd
HIGH 8.1

DescriptionCVE.org

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, when a PAM service is configured with deny_remote=false in pam_usb (commonly done for display managers such as gdm-password or lightdm to bypass process/TTY heuristics for local sessions), the PAM_RHOST check in pusb_do_auth() is also skipped. PAM_RHOST is set by remote daemons (sshd, XDMCP servers) to identify the remote client address. Because the check is gated inside if (opts.deny_remote), a genuine remote XDMCP connection reaches the USB device authentication step instead of being rejected. This vulnerability is fixed in 0.9.1.

Executive ViewAI

Why It Matters

pam_usb versions prior to 0.9.1 contain an authentication bypass that enables unauthorized remote access when administrators configure the remote-access setting to permit XDMCP sessions-a common operational choice for distributed display environments. This vulnerability could grant attackers complete system access without valid credentials, representing a critical risk to any organization using this authentication module with the vulnerable configuration.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Ensure deny_remote=true on all pam_usb configurations (restores default behavior); (2) Disable XDMCP entirely if remote display access is not operationally required; (3) Restrict XDMCP network access via firewall rules to trusted networks only; (4) Implement SSH with hardware token authentication as an alternative to XDMCP for remote access scenarios.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

CVE-2026-48066 MEDIUM
5.7 May 27

Concurrent PAM invocations in pam_usb prior to 0.9.1 expose a process-wide static pointer race condition in src/log.c, w

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