{"id":"CVE-2018-16426","details":"Endless recursion when handling responses from an IAS-ECC card in iasecc_select_file in libopensc/card-iasecc.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to hang or crash the opensc library using programs.","modified":"2026-04-16T01:40:39.042383606Z","published":"2018-09-04T00:29:01.293Z","related":["SUSE-SU-2018:3622-1","SUSE-SU-2018:3622-2","SUSE-SU-2018:3629-1","openSUSE-SU-2024:11123-1"],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2019/09/msg00009.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2154"},{"type":"ADVISORY","url":"https://github.com/OpenSC/OpenSC/commit/03628449b75a93787eb2359412a3980365dda49b#diff-f8c0128e14031ed9307d47f10f601b54"},{"type":"ADVISORY","url":"https://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1"},{"type":"ADVISORY","url":"https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/commit/03628449b75a93787eb2359412a3980365dda49b#diff-f8c0128e14031ed9307d47f10f601b54"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/releases/tag/0.19.0-rc1"},{"type":"EVIDENCE","url":"https://www.x41-dsec.de/lab/advisories/x41-2018-002-OpenSC/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensc/opensc","events":[{"introduced":"0"},{"fixed":"03628449b75a93787eb2359412a3980365dda49b"},{"introduced":"0"},{"fixed":"b5a6f9aa6e5a8d0d2e7344319650af7f37a68581"}]}],"versions":["0.12.2","0.12.2-rc1","0.13.0","0.13.0pre1","0.13.0rc1","0.14.0","0.14.0rc2","0.14.0rtm","0.15.0","0.16.0","0.16.0-rc1","0.16.0-rc2","0.17.0","0.17.0-rc1","0.17.0-rc2","0.18.0","0.18.0-rc1","0.18.0-rc2","v0.12.2","v0.16.0-pre1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-16426.json","vanir_signatures":[{"target":{"file":"src/libopensc/card-iasecc.c"},"source":"https://github.com/opensc/opensc/commit/03628449b75a93787eb2359412a3980365dda49b","id":"CVE-2018-16426-40a18c97","signature_version":"v1","signature_type":"Line","deprecated":false,"digest":{"line_hashes":["305669692155909973520627135751357879527","251334081477015221125990730745505354601","134406522267042626252050150832528287567","277782198091582563343361403567242913780","88565159515008359977172308201979753609","193030754571378948556834261188099873612","196755580204196598803093232732591052103","306278050986908628292519813156819136996","3780710711739340700126246012584124474","46058005536107373500213102097167255621","253231763253972024815246637268084374733"],"threshold":0.9}},{"target":{"file":"src/libopensc/card-iasecc.c","function":"iasecc_select_file"},"source":"https://github.com/opensc/opensc/commit/03628449b75a93787eb2359412a3980365dda49b","signature_type":"Function","id":"CVE-2018-16426-d1f99eb9","signature_version":"v1","deprecated":false,"digest":{"function_hash":"329899996166684623670025108497191726919","length":6798}}]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:P/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}