{"id":"UBUNTU-CVE-2025-66037","details":"OpenSC is an open source smart card tools and middleware. Prior to version 0.27.0, feeding a crafted input to the fuzz_pkcs15_reader harness causes OpenSC to perform an out-of-bounds heap read in the X.509/SPKI handling path. Specifically, sc_pkcs15_pubkey_from_spki_fields() allocates a zero-length buffer and then reads one byte past the end of that allocation. This issue has been patched in version 0.27.0.","modified":"2026-05-20T16:23:42.207375056Z","published":"2026-03-30T18:16:00Z","upstream":["CVE-2025-66037"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-66037"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-66037"}],"affected":[{"package":{"name":"opensc","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15.0-1ubuntu1","0.15.0-1ubuntu1+esm1","0.15.0-1ubuntu1+esm2","0.15.0-1ubuntu1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.15.0-1ubuntu1+esm3","binary_name":"opensc"},{"binary_version":"0.15.0-1ubuntu1+esm3","binary_name":"opensc-pkcs11"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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_version":"0.17.0-3ubuntu0.1~esm3","binary_name":"opensc"},{"binary_version":"0.17.0-3ubuntu0.1~esm3","binary_name":"opensc-pkcs11"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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_version":"0.20.0-3ubuntu0.1~esm4","binary_name":"opensc"},{"binary_name":"opensc-pkcs11","binary_version":"0.20.0-3ubuntu0.1~esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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_version":"0.22.0-1ubuntu2.1+esm1","binary_name":"opensc"},{"binary_version":"0.22.0-1ubuntu2.1+esm1","binary_name":"opensc-pkcs11"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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_version":"0.25.0~rc1-1ubuntu0.2+esm1","binary_name":"opensc"},{"binary_version":"0.25.0~rc1-1ubuntu0.2+esm1","binary_name":"opensc-pkcs11"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.26.1-1","0.26.1-2","0.26.1-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.26.1-3","binary_name":"opensc"},{"binary_name":"opensc-pkcs11","binary_version":"0.26.1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}},{"package":{"name":"opensc","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/opensc?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.26.1-3","0.26.1-3ubuntu1","0.27.0~rc1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.27.0~rc1-1","binary_name":"opensc"},{"binary_name":"opensc-pkcs11","binary_version":"0.27.0~rc1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66037.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","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":"Ubuntu","score":"medium"}]}