Skip to main content
← All vulnerabilities
CVE-2026-44713

pam_usb: Command injection via $TMUX environment variable leads to RCE as root

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.8.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.8.7, src/tmux.c reads the user's $TMUX environment variable, splits it on commas, and interpolates the socket-path component directly into a shell command passed to popen(). Because the value is placed inside double-quotes without sanitisation, any value containing " terminates the quoted string and injects arbitrary shell syntax. popen() runs as root inside the PAM stack. This vulnerability is fixed in 0.8.7.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • mcdope pam_usb

    fixed in 0.8.7

References 1

GitHub · mcdope/pam_usb