# CVE-2025-24032: PAM-PKCS\#11 vulnerable to authentication bypass with default value for \`cert\_policy\` (\`none\`)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.2
- **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:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.08% (percentile 65, 2026-11-26)
- **CWE:** CWE-287
- **Published:** 2025-02-10T15:43:47.166Z
- **Modified:** 2026-06-17T08:57:55.607Z

## Who should check

- Anyone running OpenSC pam\_pkcs11 \< 0.6.13

## 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

- OpenSC pam\_pkcs11: \< 0.6.13 (cvelist)

## Mitigation

- Upgrade pam\_pkcs11 to 0.6.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-8r8p-7mgp-vf56>
- patch: <https://github.com/OpenSC/pam_pkcs11/commit/470263258d1ac59c5eade439c4d9caba0097e6e6>
- patch: <https://github.com/OpenSC/pam_pkcs11/commit/b665b287ff955bbbd9539252ff9f9e2754c3fb48>
- patch: <https://github.com/OpenSC/pam_pkcs11/commit/d9530167966a77115db6e885d459382a2e52ee9e>
- other: <https://github.com/OpenSC/pam_pkcs11/releases/tag/pam_pkcs11-0.6.13>
- other: <https://lists.debian.org/debian-lts-announce/2025/02/msg00021.html>
- other: <https://www.vicarius.io/vsociety/posts/cve-2025-24032-detect-vulnerability-in-linux-pam-module>
- other: <https://www.vicarius.io/vsociety/posts/cve-2025-24032-mitigate-linux-pam-module-vulnerability>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-24032>

HTML: <https://flawdb.com/CVE-2025-24032> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-24032>
