Vulnerability · Published Feb 10, 2025 · Assigned by GitHub_M

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

Critical 9.2

In plain English

A critical-severity improper authentication in pam_pkcs11 from OpenSC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.2Critical
Exploit odds (30 days)0.7%top 46.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pam-pkcs110.6.12-1+deb12u1DSA-5864-1
Debian:12pam-pkcs110.6.12-1+deb12u1DEBIAN-CVE-2025-24032
Debian:13pam-pkcs110.6.13-1DEBIAN-CVE-2025-24032
Debian:14pam-pkcs110.6.13-1DEBIAN-CVE-2025-24032
Ubuntu:22.04:LTSpam-pkcs110.6.11-4ubuntu0.1USN-7363-1
Ubuntu:22.04:LTSpam-pkcs110.6.11-4ubuntu0.1UBUNTU-CVE-2025-24032
Ubuntu:24.04:LTSpam-pkcs110.6.12-2ubuntu0.24.04.1UBUNTU-CVE-2025-24032
Ubuntu:24.04:LTSpam-pkcs110.6.12-2ubuntu0.24.04.1USN-7363-1

Affected products (as reported)

VendorProductVersions
OpenSC pam_pkcs11 < 0.6.13

Weakness: CWE-287 · Vector: 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

References