6.8

CVE-2026-40510: OpenSC < 0.27.0-rc1 Stack Buffer Overflow via piv_process_history() in card-piv.c

Analyzed
AliasesSUSE-SU-2026:23478-1SUSE-SU-2026:23527-1SUSE-SU-2026:23543-1
Published 29-05-2026Last modified 08-11-2026

Vulnerability summary

CVE-2026-40510 is a medium (CVSS 6.8) Stack-based Buffer Overflow vulnerability in opensc_project opensc. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 1, physical access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
6.8/10
010
Medium · v3.1 (NVD)
EPSS score
0.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 29-05-2026
    PublishedVulnerability first disclosed.
  2. 08-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 2 sources · 2 versions

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

24%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.29% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: physical access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Suse10 products
  • opensc&distro=SUSE Linux Enterprise Micro 5.3< 0.22.0-150400.3.20.1
  • opensc&distro=SUSE Linux Enterprise Micro 5.4< 0.22.0-150400.3.20.1
  • opensc&distro=SUSE Linux Enterprise Micro 5.5< 0.22.0-150400.3.20.1
  • opensc&distro=SUSE Linux Enterprise Module for Basesystem 15 SP7< 0.22.0-150600.11.14.1
  • opensc&distro=SUSE Linux Enterprise Server 16.0< 0.26.1-160000.4.1
Opensc1 product
  • opensc< 0.27.0-rc1 | < 3f24f0b48a481a8cf2e46059d8238a283ddc1c13
Opensc_project1 product
Opensuse1 product
  • opensc&distro=openSUSE Leap 16.0< 0.26.1-160000.4.1

4 vendors · 13 products

References

14 links
Show all 14 references