CVE-2025-66038
published low CVSS 3.1 · 3.9OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSC | — | OpenSC< 0.27.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | opensc | Fixed | 0.27.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP4 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP4 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
Show 36 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP5 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscaarch64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscppc64le | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscs390x | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP6 | openscx86_64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscaarch64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscppc64le | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscs390x | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-15-SP7 | openscx86_64 | Advisory build | 0.22.0-150600.11.11.1 | SUSE-SU-2026:2697-1 |
| SUSE / openSUSE | SLE-16 | openscaarch64 | Advisory build | 0.26.1-160000.3.1 | SUSE-SU-2026:22126-1 |
| SUSE / openSUSE | SLE-16 | openscppc64le | Advisory build | 0.26.1-160000.3.1 | SUSE-SU-2026:22126-1 |
| SUSE / openSUSE | SLE-16 | openscs390x | Advisory build | 0.26.1-160000.3.1 | SUSE-SU-2026:22126-1 |
| SUSE / openSUSE | SLE-16 | openscx86_64 | Advisory build | 0.26.1-160000.3.1 | SUSE-SU-2026:22126-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.19.0-150100.3.34.1 | SUSE-SU-2026:1477-1 |
| SUSE / openSUSE | SLE-5 | openscaarch64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscppc64le | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.19.0-150100.3.34.1 | SUSE-SU-2026:1477-1 |
| SUSE / openSUSE | SLE-5 | openscs390x | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.19.0-150100.3.34.1 | SUSE-SU-2026:1477-1 |
| SUSE / openSUSE | SLE-5 | openscx86_64 | Advisory build | 0.22.0-150400.3.17.1 | SUSE-SU-2026:2657-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscaarch64 | Advisory build | 0.26.1-160000.3.1 | OPENSUSE-SU-2026:20967-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscppc64le | Advisory build | 0.26.1-160000.3.1 | OPENSUSE-SU-2026:20967-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscs390x | Advisory build | 0.26.1-160000.3.1 | OPENSUSE-SU-2026:20967-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | openscx86_64 | Advisory build | 0.26.1-160000.3.1 | OPENSUSE-SU-2026:20967-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opensc-bash-completionnoarch | Advisory build | 0.26.1-160000.3.1 | OPENSUSE-SU-2026:20967-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscaarch64 | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscppc64le | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscs390x | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | openscx86_64 | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionaarch64 | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionppc64le | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completions390x | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opensc-bash-completionx86_64 | Advisory build | 0.27.1-1.1 | OPENSUSE-SU-2026:10475-1 |
Description
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 without verifying that the claimed value length fits within the remaining buffer. In cases where the sc_compacttlv_find_tag is provided untrusted data (such as being read from cards/files), attackers may be able to influence it to return out-of-bounds pointers leading to downstream memory corruption when subsequent code tries to dereference the pointer. This issue has been patched in version 0.27.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.9 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | OpenSC | < 0.27.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-126 CWE-126: Buffer Over-read
References
3Provider assertions
2GitHub_M · cna
OpenSC: `sc_compacttlv_find_tag` can return out-of-bounds pointers
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bca14f80bf5659d63408bc67ce8c8839b89136c3f0def0723e1acc9de526274a
- Ingested
- 23 Sep 2026, 08:56:20 UTC
- Source record
- Official CVE record