CVE-2025-23013
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 · uneditedIn 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 confidenceThe 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify if pam-u2f is installedRun '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
-
Determine the installed pam-u2f versionIf 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 thresholdAffected if The installed version number is less than 1.3.1 (for example, 1.3.0, 1.2.0, 1.1.0, etc.)
-
Locate PAM configuration files referencing pam-u2fSearch 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 existsAffected 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
-
Examine the PAM stack order for pam-u2f entriesFor 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 distributionAffected 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)
-
Check for user presence configurationReview 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 moduleAffected 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.
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 · scopedUpgrade pam-u2f to version 1.3.1 or later and audit PAM configuration to ensure the authentication flow is properly enforced.
pam-u2f version 1.3.1 or later
- 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
- Upgrade the pam-u2f package to version 1.3.1 or later using the system's package manager
- Verify the upgraded version by querying the package again to confirm 1.3.1 or newer is installed
- If pam-u2f is compiled from source, obtain the 1.3.1 release from the official Yubico GitHub repository and rebuild
- Restart any relevant authentication services (such as PAM-enabled login services, SSH, or the desktop login manager) to ensure the new module is loaded
- 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.
- Consultation3.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-23013 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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