CVE-2026-44713: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in mcdope pam_usb
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.
AI Analysis
Technical Summary
The vulnerability in pam_usb (before version 0.8.7) involves improper neutralization of special elements in the $TMUX environment variable. Specifically, the code in src/tmux.c reads $TMUX, splits it on commas, and interpolates the socket-path component directly into a shell command passed to popen(). Because the value is enclosed in double quotes without sanitization, an attacker can terminate the quoted string and inject arbitrary shell syntax. Since popen() runs as root within the PAM authentication stack, this leads to a high-severity OS command injection vulnerability. The vulnerability is addressed by sanitizing input or changing the handling of $TMUX in version 0.8.7.
Potential Impact
Successful exploitation allows a local attacker with limited privileges to execute arbitrary commands as root during the PAM authentication process. This can lead to full system compromise, including confidentiality, integrity, and availability impacts. The CVSS score of 8.8 reflects the high impact on confidentiality, integrity, and availability with low attack complexity but requiring local privileges.
Mitigation Recommendations
Upgrade pam_usb to version 0.8.7 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the version in use and update accordingly. Until upgraded, restrict access to environments where $TMUX can be manipulated by untrusted users. Patch status is not explicitly confirmed by a vendor advisory, so check for official updates or vendor communications for the latest remediation guidance.
CVE-2026-44713: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in mcdope pam_usb
Description
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.
CVSS v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pam_usb (before version 0.8.7) involves improper neutralization of special elements in the $TMUX environment variable. Specifically, the code in src/tmux.c reads $TMUX, splits it on commas, and interpolates the socket-path component directly into a shell command passed to popen(). Because the value is enclosed in double quotes without sanitization, an attacker can terminate the quoted string and inject arbitrary shell syntax. Since popen() runs as root within the PAM authentication stack, this leads to a high-severity OS command injection vulnerability. The vulnerability is addressed by sanitizing input or changing the handling of $TMUX in version 0.8.7.
Potential Impact
Successful exploitation allows a local attacker with limited privileges to execute arbitrary commands as root during the PAM authentication process. This can lead to full system compromise, including confidentiality, integrity, and availability impacts. The CVSS score of 8.8 reflects the high impact on confidentiality, integrity, and availability with low attack complexity but requiring local privileges.
Mitigation Recommendations
Upgrade pam_usb to version 0.8.7 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the version in use and update accordingly. Until upgraded, restrict access to environments where $TMUX can be manipulated by untrusted users. Patch status is not explicitly confirmed by a vendor advisory, so check for official updates or vendor communications for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-07T17:07:09.318Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a175c27e29bf47b50eb6092
Added to database: 05/27/2026, 21:03:35 UTC
Last enriched: 06/04/2026, 20:49:09 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 64
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.