CVE-2025-66038: OpenSC is an open source smart card tools and middleware
CVE-2025-66038 is a low-severity flaw (CVSS 3.9) affecting opensc. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibble). With a 1-byte buffer {0x0A}, the encoded element claims tag=0 and length=10 but no value bytes follow. Calling sc_compacttlv_find_tag with search tag 0x00 returns a pointer equal to buf+1 and outlen=10 with
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.9 (Low) |
| Attack vector | Physical |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 78%) |
| CISA exploited list | No |
| Weakness | CWE-126 |
| Published | 2026-03-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-66038?
opensc: upgrade to 0.27.0. Exact commands for each OS are on this page.
Is CVE-2025-66038 being exploited?
CVE-2025-66038 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-66038 affect?
CVE-2025-66038 affects opensc. Severity is low (CVSS 3.9). OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, sc_compacttlv_find_tag searches a compact-TLV buffer for a given tag. In compact-TLV, a single byte encodes the tag (high nibble) and value length (low nibbl
How urgent is CVE-2025-66038?
Priority 24/100. Public exploit reference
Related CVEs
- CVE-2026-40510 LOW 3.8 UPGRADE OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains a stack buffer overflow vulnerability in piv_proce
- CVE-2026-40528 LOW 3.8 UPGRADE OpenSC before 0.27.0, fixed in commit 0358817, contains a stack and heap buffer overrun vulnerability in the d
- CVE-2025-66215 LOW 3.8 UPGRADE OpenSC is an open source smart card tools and middleware
- CVE-2025-66037 LOW 3.9 UPGRADE OpenSC is an open source smart card tools and middleware
- CVE-2025-49010 LOW 3.8 UPGRADE OpenSC is an open source smart card tools and middleware