BreachSpiderVerified, not vibes

CVE-2026-40510 in Opensc-Project products

Medium 6.8

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...

Affects 0 products from 1 vendor. Facts below cite their sources.

CVSS 3.16.8
CVSS v41.0
EPSS0.3%
EPSS percentile10th
FixUnknown

Requires physical access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Opensc-Project — —
Opensc Project Opensc < 0.27.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-40510
CVSS vectorCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2026-05-29
Last modified2026-07-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-121: Stack-Based Buffer Overflow

Buffer overflow corrupting the program stack, typically overwriting the return address for code execution.

Analysis AI-written, not human-reviewed

A medium severity vulnerability (CVE-2026-40510) affects the target system. 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 s...

Questions

What is CVE-2026-40510?

A medium severity vulnerability (CVE-2026-40510) affects the target system. 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 s...

What is the CVSS score for CVE-2026-40510?

CVE-2026-40510 has CVSS 6.8 (Medium). Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2026-40510 actively exploited?

No confirmed active exploitation of CVE-2026-40510 as of 2026-10-06.

How do I remediate CVE-2026-40510?

Apply vendor patches for CVE-2026-40510. Monitor Opensc-Project advisories.

What systems are affected by CVE-2026-40510?

CVE-2026-40510 affects Opensc-Project.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Opensc-Project","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-21.