{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-66038","published":"2026-03-30T18:16:18.177000Z","last_modified":"2026-06-17T09:56:13.423000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-126"],"cpes":[{"criteria":"cpe:2.3:a:opensc_project:opensc:*:*:*:*:*:*:*:*","part":"a","vendor":"opensc_project","product":"opensc","version_end_excluding":"0.27.0"}],"cpes_truncated":false,"vendors":["opensc_project"],"products":["opensc_project/opensc"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":41,"links":{"html_es":"/es/cve/CVE-2025-66038/","html_en":"/en/cve/CVE-2025-66038/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-66038","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-66038"},"untrusted":{"vendor_name":"Opensc Project","product_name":"Opensc","desc_en":"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.","affected":[{"untrusted_vendor":"OpenSC","untrusted_product":"OpenSC","versions":[]}],"references":[{"url":"https://github.com/OpenSC/OpenSC/commit/6db171bcb6fd7cb3b51098fefbb3b28e44f0a79c","tags":["Patch"]},{"url":"https://github.com/OpenSC/OpenSC/security/advisories/GHSA-72x5-fwjx-2459","tags":["Exploit","Vendor Advisory"]},{"url":"https://github.com/OpenSC/OpenSC/wiki/CVE-2025-66038","tags":["Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2026:2697-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262697-1/","published":"2026-06-30T09:15:07+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for opensc"}},{"source":"suse","id":"SUSE-SU-2026:2657-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262657-1/","published":"2026-06-26T12:25:06+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for opensc"}},{"source":"suse","id":"openSUSE-SU-2026:20967-1","url":"https://www.suse.com/support/update/","published":"2026-06-15T11:47:03+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for opensc"}}]}