CVE-2025-24032
PAM-PKCS#11 vulnerable to authentication bypass with default value for `cert_policy` (`none`)
Mitigation
- Upgrade pam_pkcs11 to 0.6.13 or later.
Who should check
- Anyone running OpenSC pam_pkcs11 < 0.6.13
Vulnerability facts
- Affected
- OpenSC pam_pkcs11 < 0.6.13
- Fixed in
- OpenSC pam_pkcs11 0.6.13
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:L/SI:L/SA:LOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-287
- Modified
Description
PAM-PKCS#11 is a Linux-PAM login module that allows a X.509 certificate based user login. Prior to version 0.6.13, if cert_policy is set to none (the default value), then pam_pkcs11 will only check if the user is capable of logging into the token. An attacker may create a different token with the user's public data (e.g. the user's certificate) and a PIN known to the attacker. If no signature with the private key is required, then the attacker may now login as user with that created token. The default to *not* check the private key's signature has been changed with commit commi6638576892b59a99389043c90a1e7dd4d783b921, so that all versions starting with pam_pkcs11-0.6.0 should be affected. As a workaround, in `pam_pkcs11.conf`, set at least `cert_policy = signature;`.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| OpenSC pam_pkcs11 | < 0.6.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-24032. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-24032.md Affected: OpenSC pam_pkcs11 < 0.6.13 Fixed in: OpenSC pam_pkcs11 0.6.13 Steps: 1. Search this machine and project for OpenSC pam_pkcs11: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
Other
- https://github.com/OpenSC/pam_pkcs11/releases/tag/pam_pkcs11-0.6.13
- https://lists.debian.org/debian-lts-announce/2025/02/msg00021.html
- https://www.vicarius.io/vsociety/posts/cve-2025-24032-detect-vulnerability-in-linux-pam-module
- https://www.vicarius.io/vsociety/posts/cve-2025-24032-mitigate-linux-pam-module-vulnerability
FAQ
Is CVE-2025-24032 being exploited?
There is no confirmed exploitation: CVE-2025-24032 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-24032?
Critical: CVSS 9.2 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-24032?
OpenSC pam_pkcs11 < 0.6.13.
Is there a fix for CVE-2025-24032?
Yes. Fixed in OpenSC pam_pkcs11 0.6.13. Upgrade pam_pkcs11 to 0.6.13 or later.
How do I check if I'm affected by CVE-2025-24032?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.