CVE-2025-24032PAM-PKCS#11 vulnerable to authentication bypass with default value for `cert_policy`…
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;`.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | pam-pkcs11 | Fixed | 0.6.12-2ubuntu0.24.04.1 | UBUNTU-CVE-2025-24032 |
| Ubuntu 22.04 | pam-pkcs11 | Fixed | 0.6.11-4ubuntu0.1 | UBUNTU-CVE-2025-24032 |
| Ubuntu 20.04 | pam-pkcs11 | Fixed | 0.6.11-2ubuntu0.1 | UBUNTU-CVE-2025-24032 |
| Ubuntu 18.04 | pam-pkcs11 | Fix pending | 0.6.9-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-24032 |
| Ubuntu 16.04 | pam-pkcs11 | Fix pending | 0.6.8-4ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-24032 |
| Debian 14 | pam-pkcs11 | Fixed | 0.6.13-1 | DEBIAN-CVE-2025-24032 |
| Debian 13 | pam-pkcs11 | Fixed | 0.6.13-1 | DEBIAN-CVE-2025-24032 |
| Debian 12 | pam-pkcs11 | Fixed | 0.6.12-1+deb12u1 | DEBIAN-CVE-2025-24032 |
| Red Hat Enterprise Linux 7 | pam_pkcs11 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | pam_pkcs11 | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSC pam_pkcs11: affected: < 0.6.13
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.