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

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-02)
- Published: 2026-06-18T19:26:05.340Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-454, CWE-807
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mcdope pam_usb: < 0.9.2

## References

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

## Sources

- CVE List: [CVE-2026-48980](https://www.cve.org/CVERecord?id=CVE-2026-48980), CVE Terms of Use, modified 2026-06-18
- NVD: [CVE-2026-48980](https://nvd.nist.gov/vuln/detail/CVE-2026-48980), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-48980 · Whole record: https://cve.day/CVE-2026-48980.json · Rebuilt by cve.day 2026-11-25T22:59:25.171Z
