CVEfocus › CVE database › CVE-2025-24032

CVE-2025-24032PAM-PKCS#11 vulnerable to authentication bypass with default value for `cert_policy`…

CVSS 9.2 CriticalEPSS 1.1% (higher than 65% of CVEs)Published 2025-02-10Updated 2025-05-21Assigner: GitHub_M

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

CWE-287

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

6Fixed
2Fix pending
2Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04pam-pkcs11Fixed0.6.12-2ubuntu0.24.04.1UBUNTU-CVE-2025-24032
Ubuntu 22.04pam-pkcs11Fixed0.6.11-4ubuntu0.1UBUNTU-CVE-2025-24032
Ubuntu 20.04pam-pkcs11Fixed0.6.11-2ubuntu0.1UBUNTU-CVE-2025-24032
Ubuntu 18.04pam-pkcs11Fix pending0.6.9-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-24032
Ubuntu 16.04pam-pkcs11Fix pending0.6.8-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-24032
Debian 14pam-pkcs11Fixed0.6.13-1DEBIAN-CVE-2025-24032
Debian 13pam-pkcs11Fixed0.6.13-1DEBIAN-CVE-2025-24032
Debian 12pam-pkcs11Fixed0.6.12-1+deb12u1DEBIAN-CVE-2025-24032
Red Hat Enterprise Linux 7pam_pkcs11Will not fix
Will not fix
Red Hat Enterprise Linux 6pam_pkcs11Will 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.

References

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.