Time-of-check Time-of-use (TOCTOU) Race Condition Affecting mcdope/pam_usb package, versions [,0.9.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MCDOPEPAMUSB-17660693
  • published27 Jun 2026
  • disclosed18 Jun 2026
  • creditUnknown

Introduced: 18 Jun 2026

NewCVE-2026-48983  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade mcdope/pam_usb to version 0.9.2 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via a race condition in the pad directory creation process. An attacker can gain unauthorized access to sensitive one-time pad files by substituting a symlink to a directory under their control between the existence check and directory creation.

CVSS Base Scores

version 4.0
version 3.1