CVE-2025-24031: Pam pkcs11 · PAM-PKCS#11 is a Linux-PAM login module that allows a X.509 certificate based user login
Affects pam-pkcs11Source GCVE Database
Not known to be exploited · CVSS 5.1 Medium.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:LExploitation evidence
Disclosed: evidence found.
CVE published 10 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10pam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSpam-pkcs11pkg:deb/ubuntu/pam-pkcs11?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
PAM-PKCS#11 is a Linux-PAM login module that allows a X.509 certificate based user login. In versions 0.6.12 and prior, the pam_pkcs11 module segfaults when a user presses ctrl-c/ctrl-d when they are asked for a PIN. When a user enters no PIN at all, `pam_get_pwd` will never initialize the password buffer pointer and as such `cleanse` will try to dereference an uninitialized pointer. On my system this pointer happens to have the value 3 most of the time when running sudo and as such it will segfault. The most likely impact to a system affected by this issue is an availability impact due to a daemon that uses PAM crashing. As of time of publication, a patch for the issue is unavailable.
References
- ubuntu.com/security/CVE-2025-24031 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-24031 (opens in a new tab)
- github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff (opens in a new tab)
- github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c (opens in a new tab)
- github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c (opens in a new tab)