CVE-2026-48980

pam_usb: getenv() used in PAM context allows environment variable injection into local-check logic

State
Published
Severity
6.3 Medium
Published
Jun 18, 2026
Updated
Jun 18, 2026
Reserved
May 26, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NGitHub_M

Weaknesses

  • CWE-454 External Initialization of Trusted Variables or Data Stores
  • CWE-807 Reliance on Untrusted Inputs in a Security Decision

Affected Products

ProductVersions
pam_usbmcdope
  • < 0.9.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.