cve.bz

CVE-2025-24032 opensc pam pkcs11: Improper Authentication

9.2 criticalEPSS 0.7%

Critical (9.2) in opensc pam pkcs11. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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;`.

Severity

CVSS 4.0

9.2 critical
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
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-02-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-24032 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24032?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24032?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24032 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSC pam_pkcs11< 0.6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pam-pkcs110.6.11-4+deb11u1DLA-4058-1
Debian12pam-pkcs110.6.12-1+deb12u1DEBIAN-CVE-2025-24032 DSA-5864-1
Debian13, 14pam-pkcs110.6.13-1DEBIAN-CVE-2025-24032
Ubuntu20.04:LTSpam-pkcs110.6.11-2ubuntu0.1UBUNTU-CVE-2025-24032 USN-7363-1
Ubuntu22.04:LTSpam-pkcs110.6.11-4ubuntu0.1UBUNTU-CVE-2025-24032 USN-7363-1
Ubuntu24.04:LTSpam-pkcs110.6.12-2ubuntu0.24.04.1UBUNTU-CVE-2025-24032 USN-7363-1
UbuntuPro:16.04:LTSpam-pkcs110.6.8-4ubuntu0.1~esm1UBUNTU-CVE-2025-24032 USN-7363-1
UbuntuPro:18.04:LTSpam-pkcs110.6.9-2ubuntu0.1~esm1UBUNTU-CVE-2025-24032 USN-7363-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 2 morepam_pkcs110.6.10-150100.3.6.1SUSE-SU-2025:0712-1
SUSELinux Enterprise Module for Basesystem 15 SP6pam_pkcs110.6.10-150600.16.3.1SUSE-SU-2025:0689-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5pam_pkcs110.6.8-7.8.1SUSE-SU-2025:0688-1
SUSELinux Micro 6.0pam_pkcs110.6.12-3.1SUSE-SU-2025:20199-1
openSUSELeap 15.6pam_pkcs110.6.10-150600.16.3.1SUSE-SU-2025:0689-1
openSUSETumbleweedpam_pkcs110.6.13-1.1openSUSE-SU-2025:14738-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is of moderate severity because it only applies when the configuration explicitly disables signature verification (cert_policy = none), which is not a secure best practice. The attack requires an adversary to create a fake token using the victim’s public certificate and a known PIN, but it does not compromise the private key itself. Since private key possession is typically required for strong authentication, systems enforcing proper certificate verification (including signature validation) remain unaffected. Additionally, RHEL is not vulnerable by default, further reducing the real-world impact.

Red Hat's mitigation

Restrict the cert_policy value to `signature` in the pam_pkcs11.conf configuration file (`cert_policy = signature`).

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6pam_pkcs11Out of support scope
Red Hat Enterprise Linux 7pam_pkcs11Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-24032.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON