CVE-2021-31924
Homebrew vulnerability analysis and mitigation

Overview

Yubico pam-u2f before version 1.1.1 contains a logic issue (CVE-2021-31924) discovered in May 2021 that could lead to a local PIN bypass depending on the pam-u2f configuration and application used. The vulnerability affects the PAM module that provides authentication over U2F and FIDO2 for YubiKey and other FIDO-compliant authenticators (NVD, Yubico Advisory).

Technical details

The vulnerability stems from a logic flaw in how pam-u2f handles PIN authentication. If pam-u2f is configured to require PIN authentication and the application using pam-u2f allows the user to submit NULL as the PIN, pam-u2f will attempt to perform a FIDO2 authentication without PIN verification. If this authentication succeeds, the PIN requirement is bypassed. The vulnerability has a CVSS v3.1 score of 6.8 (Medium) (NVD, Yubico Advisory).

Impact

While this vulnerability allows bypassing the PIN requirement, it does not compromise other security measures. An attacker would still need physical possession of and interaction with the YubiKey or enrolled authenticator, as user presence (touch) and cryptographic signature verification cannot be bypassed. The vulnerability primarily affects users relying on PIN authentication with pam-u2f version 1.1.0 (Yubico Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade to pam-u2f version 1.1.1 or later, which addresses this vulnerability. No alternative workarounds are available (Gentoo Security, Yubico Advisory).

Community reactions

The vulnerability was reported by Kamil Jońca on April 23, 2021, and Yubico released the advisory YSA-2021-03 on May 19, 2021. Various Linux distributions including Fedora and Gentoo have released security updates to address this vulnerability (Fedora Update, Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66222CRITICAL9.6
  • HomebrewHomebrew
  • deepchat
NoNoDec 03, 2025
CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-63317MEDIUM5.4
  • NixOSNixOS
  • todoist
NoNoDec 01, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management