CVE-2026-40510 json
OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
published 2026-05-29 5 mo ago modified 2026-11-08 22 h ago also EUVD-2026-33315
- cvss
- 3.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_process_history() in src/libopensc/card-piv.c that allows physically present attackers to trigger memory corruption by presenting a crafted PIV smart card or USB device returning a URL field longer than 118 bytes in the Key History Object ASN.1 response.
Patch / fix
- OpenSC OpenSC 0.27.0-rc1
- opensc SLE Module for Basesystem 15 SP7 0.22.0-150600.11.14.1
- opensc SLE Micro 5.5, SLE Micro 5.4, SLE Micro 5.3 0.22.0-150400.3.20.1
- opensc SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 0.26.1-160000.4.1
- opensc Linux Micro 6.0 0.24.0-7.1
- opensc Linux Micro 6.1 0.24.0-slfo.1.1_5.1
- opensc SLES LTSS Extended Security 12 SP5 0.13.0-3.39.1
suse advisories SUSE-SU-2026:4123-1SUSE-SU-2026:4122-1SUSE-SU-2026:23543-1SUSE-SU-2026:23697-1SUSE-SU-2026:23717-1SUSE-SU-2026:4108-1
- opensc openSUSE Leap 16.0 0.26.1-160000.4.1
opensuse advisories openSUSE-SU-2026:21820-1
- github.com/OpenSC/OpenSC@3f24f0b commit
- github.com/OpenSC/OpenSC#3558 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-40510 updated cvss 6.3
opensc: OpenSC: Memory corruption via crafted PIV smart card
-
Red Hat Enterprise Linux 7 opensc Red Hat Enterprise Linux 8 opensc Red Hat Enterprise Linux 9 opensc Red Hat Enterprise Linux 10 openscaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 1.0 | CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N |
| CNA | 3.1 | 3.8 | CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| CNA | 4.0 | 1.0 | CVSS:4.0/AV:P/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 6.8 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- OpenSC OpenSC
Classification
- Weakness
-
- CWE-121 Stack-based Buffer Overflow
References
-
github.com
/OpenSC/OpenSC/pull/3558
issue-tracking, patch
-
github.com
/OpenSC/OpenSC/commit/3f24f0b48a481a8cf2e46059d8238a283ddc1c13
patch
-
vulncheck.com
/advisories/opensc-stack-buffer-overflow-via-piv-process-history-in-card-piv-c
third-party-advisory
Sources
- CVE List CVE-2026-40510
- NVD CVE-2026-40510
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.