cve.bz

CVE-2025-66038 opensc project opensc: Buffer Over-read

6.8 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.8) in opensc project opensc. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-126 Buffer Over-read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66038 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66038?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66038?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-66038 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opensc_project:openscbefore 0.27.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13openscno fix listedDEBIAN-CVE-2025-66038
Debian14opensc0.27.0~rc1-1DEBIAN-CVE-2025-66038
Ubuntu25.10, 26.04:LTS, 26.10 and 5 moreopenscno fix listedUBUNTU-CVE-2025-66038
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreopensc0.22.0-150400.3.17.1SUSE-SU-2026:2657-1
SUSELinux Enterprise Micro 5.2opensc0.19.0-150100.3.34.1SUSE-SU-2026:1477-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6opensc0.22.0-150600.11.11.1SUSE-SU-2026:2697-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0opensc0.26.1-160000.3.1SUSE-SU-2026:22126-1
SUSELinux Micro 6.2opensc0.26.1-160000.3.1SUSE-SU-2026:22114-1
openSUSELeap 16.0opensc0.26.1-160000.3.1openSUSE-SU-2026:20967-1
openSUSETumbleweedopensc0.27.1-1.1openSUSE-SU-2026:10475-1
Azure Linux3openscno fix listedAZL-81192
Alpaquita23, 25, streamopensc0.27.1-r0BELL-CVE-2025-66038

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10openscFix deferred
Red Hat Enterprise Linux 7openscFix deferred
Red Hat Enterprise Linux 8openscFix deferred
Red Hat Enterprise Linux 9openscFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-66038.

References

Check your stackJSON