CVE-2025-66215 OpenSC: Stack-buffer-overflow WRITE in card-oberthur
An attacker with physical access can trigger a stack-buffer-overflow via a crafted smart card, potentially executing arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-66215?
CVE-2025-66215 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, and only if a user opens a file or follows a link.
Official description
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, an attacker with physical access to the computer at the time user or administrator uses a token can cause a stack-buffer-overflow WRITE in card-oberthur. The attack requires crafted USB device or smart card that would present the system with specially crafted responses to the APDUs. This issue has been patched in version 0.27.0.
Weakness: CWE-121
Which versions are affected by CVE-2025-66215?
It affects 1 product.
Products include Opensc Project Opensc.
How do I fix CVE-2025-66215?
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-66215 being exploited?
There is no known exploitation of CVE-2025-66215 in the wild and no public exploit code.
Other vulnerabilities in Opensc Project Opensc
Sources
Also known as AZL-81186, BELL-CVE-2025-66215, DEBIAN-CVE-2025-66215, GHSA-q5fc-cw56-hwp2, UBUNTU-CVE-2025-66215.