Home / OpenSC / pam_pkcs11 / CVE-2025-24031
CVE-2025-24031: is it exploited, and which versions of OpenSC pam_pkcs11 are affected and fixed?
CVE-2025-24031 is a NULL pointer dereference (crash) vulnerability in OpenSC pam_pkcs11. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: pam_pkcs11 <= 0.6.12 (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-24031?
PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
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.
From the CVE record by GitHub_M, last updated February 10, 2025, 15:50 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| OpenSC | pam_pkcs11 | <= 0.6.12 |
As the CVE record by GitHub_M states it, last updated February 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2025-24031?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.1 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:L | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24031 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, February 10, 2025)
- EPSS
- 0.24% probability of exploitation activity in the next 30 days, percentile 15.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-476 NULL Pointer Dereference
Where are the vendor advisories and references?
- https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff x_refsource_CONFIRM
- https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L211 x_refsource_MISC
- https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L797 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 16, 2025
- Published
- February 10, 2025, 15:38 UTC
- CVE record updated
- February 10, 2025, 15:50 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 08:57 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect pam_pkcs11?
- Feb 10, 2025CVE-2025-24032 OpenSC pam_pkcs11: authentication bypass (improper authentication)
Questions about CVE-2025-24031
Is CVE-2025-24031 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.24% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of OpenSC pam_pkcs11 are affected by CVE-2025-24031?
pam_pkcs11 <= 0.6.12, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2025-24031?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2025-24031?
Medium (5.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24031?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.