cve.bz

CVE-2026-40510 opensc project opensc: Stack-based Buffer Overflow

1.0 lowEPSS 0.3%Fix available

Low (1.0) in opensc project opensc. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

1.0 low
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

CVSS 3.1

6.8 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40510 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40510?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40510?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40510 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSCbefore 0.27.0-rc1

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5opensc0.22.0-150400.3.20.1SUSE-SU-2026:4122-1
SUSELinux Enterprise Module for Basesystem 15 SP7opensc0.22.0-150600.11.14.1SUSE-SU-2026:4123-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0opensc0.26.1-160000.4.1SUSE-SU-2026:23697-1 SUSE-SU-2026:23717-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5opensc0.13.0-3.39.1SUSE-SU-2026:4108-1
SUSELinux Micro 6.0opensc0.24.0-7.1SUSE-SU-2026:23478-1
SUSELinux Micro 6.1opensc0.24.0-slfo.1.1_5.1SUSE-SU-2026:23527-1
SUSELinux Micro 6.2opensc0.26.1-160000.4.1SUSE-SU-2026:23543-1
openSUSELeap 16.0opensc0.26.1-160000.4.1openSUSE-SU-2026:21820-1
Azure Linux3opensc0.27.0-rc1AZL-89150

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10openscFix deferred
Red Hat Enterprise Linux 7openscFix deferred
Red Hat Enterprise Linux 8openscFix deferred
Red Hat Enterprise Linux 9openscFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40510.

References

Check your stackJSON