CVE-2025-24032
CVE-2025-24032 · PAM-PKCS#11 vulnerable to authentication bypass with default value for `cert_policy` (`none`)
CVSS 9.2 · Critical · EPSS 1.1% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- pam_pkcs11No fix published
- pam-pkcs11 Debian 12Update to 0.6.12-1+deb12u1
- pam-pkcs11 Debian 13Update to 0.6.13-1
- pam-pkcs11 Debian 14Update to 0.6.13-1
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pam-pkcs11"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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;`.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:20199-1 · SUSE Linux Micro 6.0 ·
- USN-7363-1 · Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS ·
- SUSE-SU-2025:0712-1 · SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5 ·
- SUSE-SU-2025:0689-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6 ·
- SUSE-SU-2025:0688-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
- DLA-4058-1 · Debian 11 ·
- DSA-5864-1 · Debian 12 ·
- openSUSE-SU-2025:14738-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
pam_pkcs11
- Versions
- < 0.6.13: Affected
No fix published
pam-pkcs11 Debian 12
- Versions
- 0.6.12-1
- Affected ranges
- ECOSYSTEM: < 0.6.12-1+deb12u1
Update to 0.6.12-1+deb12u1
pam-pkcs11 Debian 13
- Affected ranges
- ECOSYSTEM: < 0.6.13-1
Update to 0.6.13-1
pam-pkcs11 Debian 14
- Affected ranges
- ECOSYSTEM: < 0.6.13-1
Update to 0.6.13-1
pam-pkcs11 Ubuntu Pro 16.04 LTS
- Versions
- 0.6.8-4
- Affected ranges
- ECOSYSTEM: < 0.6.8-4ubuntu0.1~esm1
Update to 0.6.8-4ubuntu0.1~esm1
pam-pkcs11 Ubuntu Pro 18.04 LTS
- Versions
- 0.6.9-1
- 0.6.9-2
- 0.6.9-2build1
- 0.6.9-2build2
- Affected ranges
- ECOSYSTEM: < 0.6.9-2ubuntu0.1~esm1
Update to 0.6.9-2ubuntu0.1~esm1
pam-pkcs11 Ubuntu 20.04 LTS
- Versions
- 0.6.11-2
- Affected ranges
- ECOSYSTEM: < 0.6.11-2ubuntu0.1
Update to 0.6.11-2ubuntu0.1
pam-pkcs11 Ubuntu 22.04 LTS
- Versions
- 0.6.11-4build1
- 0.6.11-4build2
- Affected ranges
- ECOSYSTEM: < 0.6.11-4ubuntu0.1
Update to 0.6.11-4ubuntu0.1
pam-pkcs11 Ubuntu 24.04 LTS
- Versions
- 0.6.12-1
- 0.6.12-2
- 0.6.12-2build2
- 0.6.12-2build3
- Affected ranges
- ECOSYSTEM: < 0.6.12-2ubuntu0.24.04.1
Update to 0.6.12-2ubuntu0.24.04.1
Original sources
- https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-8r8p-7mgp-vf56
- https://github.com/OpenSC/pam_pkcs11/commit/470263258d1ac59c5eade439c4d9caba0097e6e6
- https://github.com/OpenSC/pam_pkcs11/commit/b665b287ff955bbbd9539252ff9f9e2754c3fb48
- https://github.com/OpenSC/pam_pkcs11/commit/d9530167966a77115db6e885d459382a2e52ee9e
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2025-24032