CVE-2026-48980 PUBLISHED

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

Assigner: GitHub_M
Reserved: 26.05.2026 Published: 18.06.2026 Updated: 18.06.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 6.3

Product Status

Vendor mcdope
Product pam_usb
Versions
  • Version < 0.9.2 is affected

References

Problem Types

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