CWE-394Weakness · CWE-394

CVE-2025-23013

HIGH · 7.3 CVSS v4.0 Published 2025-01-15
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
75/100
Remediation priority · High
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
In Yubico pam-u2f before 1.3.1, local privilege escalation can sometimes occur. This product implements a Pluggable Authentication Module (PAM) that can be deployed to support authentication using a YubiKey or other FIDO compliant authenticators on macOS or Linux. This software package has an issue that allows for an authentication bypass in some configurations. An attacker would require the ability to access the system as an unprivileged user. Depending on the configuration, the attacker may also need to know the user's password.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The pam-u2f PAM module before version 1.3.1 contains an authentication bypass vulnerability that allows local unprivileged users to escalate privileges in certain configurations. The flaw allows attackers with system access to circumvent the YubiKey/FIDO authentication mechanism, potentially gaining elevated access without proper credential verification.

MitigationUpgrade pam-u2f to version 1.3.1 or later and audit PAM configuration to ensure the authentication flow is properly enforced.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
Authentication
X
User interaction
None
Scope
X

CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if pam-u2f is installed
    Run 'dpkg -l libpam-u2f' on Debian-based systems or 'rpm -q pam-u2f' on RHEL-based systems. If using a package manager shows it as installed, also check for the module file directly: 'ls -la /lib/security/pam_u2f.so' or '/lib64/security/pam_u2f.so'
    Affected if The package or module file exists on the system and the installed version is below 1.3.1
  2. Determine the installed pam-u2f version
    If the package manager shows the package, run 'dpkg -s libpam-u2f | grep Version' or 'rpm -q --queryformat "%{VERSION}-%{RELEASE}" pam-u2f' to obtain the exact version number. Compare this version to the 1.3.1 threshold
    Affected if The installed version number is less than 1.3.1 (for example, 1.3.0, 1.2.0, 1.1.0, etc.)
  3. Locate PAM configuration files referencing pam-u2f
    Search PAM configuration directories for files containing 'pam_u2f' or 'u2f': 'grep -r "pam_u2f" /etc/pam.d/' and also check /etc/pam.conf if it exists
    Affected if Any file in /etc/pam.d/ or /etc/pam.conf contains pam_u2f in an auth or account line, indicating the module is actively used in an authentication flow
  4. Examine the PAM stack order for pam-u2f entries
    For each PAM configuration file that references pam_u2f, review the full auth stack order. Check if pam_u2f appears alone in an auth line, or if it is positioned in a way that allows fallback authentication. Look at files like system-auth, password-auth, or common-auth depending on your distribution
    Affected if The pam_u2f module is configured in a way where it can be bypassed (for example, if the PAM stack allows other authentication methods to succeed if pam_u2f returns a failure, or if it is configured without proper required/requisite flags)
  5. Check for user presence configuration
    Review the pam_u2f configuration options in the PAM files. Look for lines that may include 'authfile=', 'debug', or other options. If there is a configuration file referenced (often in ~/.config/Yubico/ or specified via authfile), examine whether it exists and is readable by the PAM module
    Affected if The pam_u2f configuration lacks proper user presence verification (such as 'userpresence=1') or uses a configuration that can be manipulated to bypass the FIDO authentication requirement

The system is affected if pam-u2f is installed with a version below 1.3.1 and the module is actively referenced in any PAM authentication configuration, particularly in configurations where it can be bypassed or where it does not enforce strict user presence verification.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade pam-u2f to version 1.3.1 or later and audit PAM configuration to ensure the authentication flow is properly enforced.

Recommended fix Moderate confidence

pam-u2f version 1.3.1 or later

  1. Identify the current pam-u2f package version installed on the system using the package manager (e.g., apt, yum, dnf, brew) or by checking the library binary version
  2. Upgrade the pam-u2f package to version 1.3.1 or later using the system's package manager
  3. Verify the upgraded version by querying the package again to confirm 1.3.1 or newer is installed
  4. If pam-u2f is compiled from source, obtain the 1.3.1 release from the official Yubico GitHub repository and rebuild
  5. Restart any relevant authentication services (such as PAM-enabled login services, SSH, or the desktop login manager) to ensure the new module is loaded
  6. Test authentication using the YubiKey or FIDO authenticator to confirm the module functions correctly after the upgrade

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
13.0 hours of engineering $2,280
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,648.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-23013 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-23013 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data