CVE-2026-40510
published low CVSS 4.0 · 1.0OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSC | — | OpenSC0 to < 0.27.0-rc1 · 0 to < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 · Other versions: affected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | openscx86_64 | Advisory build | 0.13.0-3.39.1 | SUSE-SU-2026:4108-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscaarch64 | Advisory build | 0.22.0-150600.11.14.1 | SUSE-SU-2026:4123-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscppc64le | Advisory build | 0.22.0-150600.11.14.1 | SUSE-SU-2026:4123-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscs390x | Advisory build | 0.22.0-150600.11.14.1 | SUSE-SU-2026:4123-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscx86_64 | Advisory build | 0.22.0-150600.11.14.1 | SUSE-SU-2026:4123-1 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | openscaarch64 | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23697-1 |
| SUSE / openSUSE | SLE-16 | openscaarch64 | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23717-1 |
| SUSE / openSUSE | SLE-16 | openscppc64le | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23697-1 |
| SUSE / openSUSE | SLE-16 | openscppc64le | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23717-1 |
| SUSE / openSUSE | SLE-16 | openscs390x | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23697-1 |
| SUSE / openSUSE | SLE-16 | openscs390x | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23717-1 |
| SUSE / openSUSE | SLE-16 | openscx86_64 | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23697-1 |
| SUSE / openSUSE | SLE-16 | openscx86_64 | Advisory build | 0.26.1-160000.4.1 | SUSE-SU-2026:23717-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.22.0-150400.3.20.1 | SUSE-SU-2026:4122-1 |
| SUSE / openSUSE | SLE-5 | openscppc64le | Advisory build | 0.22.0-150400.3.20.1 | SUSE-SU-2026:4122-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.22.0-150400.3.20.1 | SUSE-SU-2026:4122-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.22.0-150400.3.20.1 | SUSE-SU-2026:4122-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscaarch64 | Advisory build | 0.26.1-160000.4.1 | OPENSUSE-SU-2026:21820-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscppc64le | Advisory build | 0.26.1-160000.4.1 | OPENSUSE-SU-2026:21820-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscs390x | Advisory build | 0.26.1-160000.4.1 | OPENSUSE-SU-2026:21820-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscx86_64 | Advisory build | 0.26.1-160000.4.1 | OPENSUSE-SU-2026:21820-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opensc-bash-completionnoarch | Advisory build | 0.26.1-160000.4.1 | OPENSUSE-SU-2026:21820-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 1.0 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.8 | low | VulnCheck · cna | CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | OpenSC | 0 to < 0.27.0-rc1 (affected · semver)0 to < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13 (affected · git)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-121 Stack-based Buffer Overflow
References
3Provider assertions
2VulnCheck · cna
OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b46fb4adc69b26149b1b61f39d7348c5ef1c3e832f0085573d09988682ad6b9e
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record