Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40510: OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_proce

19
Routine
LOW 3.8UPGRADE

CVE-2026-40510 is a low-severity flaw (CVSS 3.8) affecting opensc. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score3.8 (Low)
Attack vectorPhysical
Attack complexityHigh
Privileges neededNone
User interactionRequired
EPSS exploit chance0.3% (top 78%)
CISA exploited listNo
WeaknessCWE-121
Published2026-05-29
Last modified2026-07-21
Publisher (CNA): VulnCheck · Vendor: opensc project

Share: LinkedIn · X · Reddit

Last updated 2026-07-21 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

opensc project opensc UPGRADE
Affected: < 0.27.0
Fixed in: 0.27.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy opensc || rpm -q opensc || opensc --version
2. UPGRADE to 0.27.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade opensc
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade opensc
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40510?

opensc: upgrade to 0.27.0. Exact commands for each OS are on this page.

Is CVE-2026-40510 being exploited?

CVE-2026-40510 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40510 affect?

CVE-2026-40510 affects opensc. Severity is low (CVSS 3.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 cra

How urgent is CVE-2026-40510?

Priority 19/100. No elevated risk signals yet.

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.