# CVE-2026-48983: mcdope pam_usb symlink race condition in pad directory creation

Source: https://junglewise.ai/threats/cve-2026-48983-mcdope-pam-usb-symlink-race-condition-in-pad-directory-creation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-18. Updated: 2026-06-21  
License: CC BY 4.0 with a link back

CVE-2026-48983 · Severity: medium · CVSS 5.8 · Published 2026-06-18

pam_usb is a tool that allows users to log into Linux systems using a USB drive as a physical security key. A security flaw in how it handles internal folders could allow a local attacker to intercept security data or block legitimate users from logging in. This could lead to unauthorized access to sensitive authentication codes or a disruption of the login process.

Technologies: [Mcdope Pam Usb](https://junglewise.ai/threats/technologies/pam-usb). Vendors: [Mcdope](https://junglewise.ai/threats/vendors/mcdope).

## Quick answers

**Is CVE-2026-48983 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-48983 being exploited in the wild.

**How severe is CVE-2026-48983?** Medium severity, with a CVSS score of 5.8, published 18 June 2026.

**Which products and versions are affected?** Mcdope Pam Usb < 0.9.2.

**Is there a fix for CVE-2026-48983?** A patch was published on 2026-05-23: Version 0.9.2 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-48983 attacked?** It is attacked with local access, in an operating system.

**Am I affected by CVE-2026-48983?** Check whether you run Mcdope Pam Usb at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Time-of-Check Time-of-Use (TOCTOU) race condition exists in src/pad.c of pam_usb. The software uses a check-then-act pattern, calling lstat() to verify a directory's existence before calling mkdir() to create it. A local attacker can exploit this window to replace the target path with a symbolic link to a directory they control. If successful, the application may write one-time pad (OTP) files into the attacker's directory, allowing the attacker to read future authentication pads (High Confidentiality impact) or prevent successful authentication (Low Availability/Integrity impact). The vulnerability is fixed in version 0.9.2 by replacing the lstat/mkdir sequence with a direct mkdir call that handles EEXIST.

## Affected products

- mcdope pam_usb < 0.9.2

## Timeline

- 2026-05-23: patched: Version 0.9.2 released
- 2026-05-24: advisory: GitHub Security Advisory published
- 2026-06-18: disclosed: CVE published to NVD

## References

- [https://github.com/mcdope/pam_usb/releases/tag/0.9.2](https://github.com/mcdope/pam_usb/releases/tag/0.9.2)
- [https://github.com/mcdope/pam_usb/security/advisories/GHSA-4j8q-67fq-3xc3](https://github.com/mcdope/pam_usb/security/advisories/GHSA-4j8q-67fq-3xc3)

## Related threats

- [pam_usb heap out-of-bounds read in display server handling](https://junglewise.ai/threats/cve-2026-64667-pam-usb-provides-hardware-authentication-for-linux-using)
- [pam_usb XRDP session bypass via environment variable](https://junglewise.ai/threats/cve-2026-64666-pam-usb-provides-hardware-authentication-for-linux-using)
- [mcdope pam_usb race condition in one-time pad update](https://junglewise.ai/threats/cve-2026-48982-mcdope-pam-usb-race-condition-in-one-time-pad-update)
- [mcdope pam_usb XXE in configuration file parsing](https://junglewise.ai/threats/cve-2026-48981-mcdope-pam-usb-xxe-in-configuration-file-parsing)
- [mcdope pam_usb environment variable injection in local-check logic](https://junglewise.ai/threats/cve-2026-48980-mcdope-pam-usb-environment-variable-injection-in-local-check)
