cve.bz

CVE-2025-66037 opensc project opensc: Out-of-bounds Read

6.8 mediumExploit referenceEPSS 0.3%

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

On this page
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. This issue has been patched in version 0.27.0.

Severity

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; 19th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-03-30. 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-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66037 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66037?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66037?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-2025-66037 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 NVD's CPE matches.

ProductAffected
opensc_project:openscbefore 0.27.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13openscno fix listedDEBIAN-CVE-2025-66037
Debian14opensc0.27.1-1DEBIAN-CVE-2025-66037
Ubuntu25.10, 26.04:LTS, 26.10 and 5 moreopenscno fix listedUBUNTU-CVE-2025-66037
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreopensc0.22.0-150400.3.17.1SUSE-SU-2026:2657-1
SUSELinux Enterprise Micro 5.2opensc0.19.0-150100.3.34.1SUSE-SU-2026:1477-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6opensc0.22.0-150600.11.11.1SUSE-SU-2026:2697-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0opensc0.26.1-160000.3.1SUSE-SU-2026:22126-1
SUSELinux Micro 6.2opensc0.26.1-160000.3.1SUSE-SU-2026:22114-1
openSUSELeap 16.0opensc0.26.1-160000.3.1openSUSE-SU-2026:20967-1
openSUSETumbleweedopensc0.27.1-1.1openSUSE-SU-2026:10475-1
Azure Linux3opensc0.27.1-1AZL-81189
Alpaquita23, 25, streamopensc0.27.1-r0BELL-CVE-2025-66037

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

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

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON