CVE-2025-66037 Details
Description
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.
A vulnerability in OpenSC versions prior to 0.27.0 allows for an out-of-bounds heap read when processing malformed X.509 certificates or SPKI data. This issue arises in the PKCS#15 public key handling function, which incorrectly allocates a zero-length buffer and then reads beyond its end. The vulnerability can lead to undefined behavior, such as application crashes or misparsing of certificate data. It is considered a low-severity issue, but could expose sensitive information in some cases.
Users can upgrade to OpenSC version 0.27.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/OpenSC/OpenSC/security/advisories/GHSA-m58q-rmjm-mmfx | [email protected] | ExploitVendor Advisory |
| https://github.com/OpenSC/OpenSC/wiki/CVE-2025-66037 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| opensc project opensc | < 0.27.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 1, 2026 | Initial Analysis | [email protected] |
| Mar 30, 2026 | New CVE Received | [email protected] |