{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.15.0-1ubuntu1+esm3"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.15.0-1ubuntu1+esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.15.0-1ubuntu1+esm3?arch=source\u0026distro=esm-apps/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.15.0-1ubuntu1",
"0.15.0-1ubuntu1+esm1",
"0.15.0-1ubuntu1+esm2",
"0.15.0-1ubuntu1+esm3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.17.0-3ubuntu0.1~esm3"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.17.0-3ubuntu0.1~esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.17.0-3ubuntu0.1~esm3?arch=source\u0026distro=esm-apps/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.17.0-1",
"0.17.0-2",
"0.17.0-2build1",
"0.17.0-3",
"0.17.0-3ubuntu0.1~esm1",
"0.17.0-3ubuntu0.1~esm2",
"0.17.0-3ubuntu0.1~esm3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.20.0-3ubuntu0.1~esm4"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.20.0-3ubuntu0.1~esm4"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.20.0-3ubuntu0.1~esm4?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.19.0-2",
"0.20.0-1",
"0.20.0-2",
"0.20.0-3",
"0.20.0-3ubuntu0.1~esm1",
"0.20.0-3ubuntu0.1~esm2",
"0.20.0-3ubuntu0.1~esm3",
"0.20.0-3ubuntu0.1~esm4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.22.0-1ubuntu2.1+esm1"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.22.0-1ubuntu2.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.22.0-1ubuntu2.1+esm1?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.21.0-1ubuntu1",
"0.22.0-1ubuntu2",
"0.22.0-1ubuntu2+esm1",
"0.22.0-1ubuntu2.1",
"0.22.0-1ubuntu2.1+esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.25.0~rc1-1ubuntu0.2+esm1"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.25.0~rc1-1ubuntu0.2+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:24.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.25.0~rc1-1ubuntu0.2+esm1?arch=source\u0026distro=esm-apps/noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.23.0-1ubuntu4",
"0.24.0~rc1-1",
"0.25.0~rc1-1",
"0.25.0~rc1-1build1",
"0.25.0~rc1-1build2",
"0.25.0~rc1-1ubuntu0.1~esm1",
"0.25.0~rc1-1ubuntu0.1",
"0.25.0~rc1-1ubuntu0.2",
"0.25.0~rc1-1ubuntu0.2+esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.26.1-3"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.26.1-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.26.1-3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.26.1-1",
"0.26.1-2",
"0.26.1-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opensc",
"binary_version": "0.27.0~rc1-1"
},
{
"binary_name": "opensc-pkcs11",
"binary_version": "0.27.0~rc1-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "opensc",
"purl": "pkg:deb/ubuntu/opensc@0.27.0~rc1-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.26.1-3",
"0.26.1-3ubuntu1",
"0.27.0~rc1-1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2025-66038",
"modified": "2026-05-20T15:22:58Z",
"published": "2026-03-30T18:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-66038"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-66038"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-66038"
]
}