Buffer overflow in Opensc

CVE-2026-40510

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 cr…

Vulnerability class: Buffer Overflow

EPSS: 0.000 (0.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 3.8 (Low). Vector: CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-40510?
CVE-2026-40510 is a low-severity vulnerability in Opensc, classified under Stack-based Buffer Overflow. CVSS score: 3.8/10. Published 2026-05-29.
How severe is CVE-2026-40510?
Low severity. CVSS v3 base score is 3.8 out of 10.