CVE-2025-66037 OpenSC: Out of Bounds vulnerability
Crafted input triggers an out-of-bounds heap read in OpenSC, potentially causing crashes or leaking memory contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-66037?
CVE-2025-66037 is a low-severity memory corruption vulnerability in Opensc Project Opensc, published on 30 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2025-66037?
It affects 1 product.
Products include Opensc Project Opensc.
How do I fix CVE-2025-66037?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-66037 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66037 exists.
Other vulnerabilities in Opensc Project Opensc
Sources
Also known as AZL-81189, BELL-CVE-2025-66037, DEBIAN-CVE-2025-66037, GHSA-m58q-rmjm-mmfx, UBUNTU-CVE-2025-66037.