CVE-2026-48980: pam_usb: getenv() used in PAM context allows environment variable injection into local-check logic
Vulnerability summary
CVE-2026-48980 is a medium (CVSS 6.3) vulnerability in mcdope pam_usb. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 6.7% of scored vulnerabilities.
Timeline
- 18-06-2026PublishedVulnerability first disclosed.
- 18-06-2026Last modifiedVulnerability information updated.
Description
pam_usb provides hardware authentication for Linux using removable media. In versions prior to 0.9.2, getenv() environment variables XRDP_SESSION, DISPLAY and TMUX allow environment variable injection into local-check logic. These environment variables influence whether a current session is local or remote, and a PAM module that runs in the context of setuid binaries (sudo, su), getenv() returns attacker-controlled values whenever the process environment has been manipulated by a local user. This issue has been fixed in version 0.9.2.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.18% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-454External Initialization of Trusted Variables or Data StoresThe product initializes critical internal variables or data stores using inputs that can be modified by untrusted actors.
- CWE-807Reliance on Untrusted Inputs in a Security DecisionThe product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism.
Affected systems
Mcdope1 product
- pam_usb< 0.9.2
1 vendor · 1 product
References
2 links- github.com/mcdope/pam_usb/security/advisories/GHSA-qr83-mf3h-fvqrX Refsource CONFIRM
- github.com/mcdope/pam_usb/releases/tag/0.9.2X Refsource MISC