{"id":"CVE-2023-4535","summary":"Opensc: out-of-bounds read in myeid driver handling encryption using symmetric keys","details":"An out-of-bounds read vulnerability was found in OpenSC packages within the MyEID driver when handling symmetric key encryption. Exploiting this flaw requires an attacker to have physical access to the computer and a specially crafted USB device or smart card. This flaw allows the attacker to manipulate APDU responses and potentially gain unauthorized access to sensitive data, compromising the system's security.","modified":"2026-11-08T07:06:11.308513344Z","published":"2023-11-06T16:57:45.785Z","related":["ALSA-2023:7879","openSUSE-SU-2024:13314-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4535.json","unresolved_ranges":[{"extracted_events":[{"strategy":"InverseAffectedRanges","range":[{"fixed":"0:0.23.0-3.el9_3"}],"source":"AFFECTED_FIELD"}]}]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CPQOMCDWFRBMEFR5VK4N5MMXXU42ODE/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLYEFIBBA37TK3UNMZN5NOJ7IWCIXLQP/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:7879"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-4535"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4535.json"},{"type":"ADVISORY","url":"https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4535"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2240914"},{"type":"REPORT","url":"https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651"},{"type":"FIX","url":"https://github.com/OpenSC/OpenSC/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opensc/opensc","events":[{"introduced":"5497519ea6b4af596628f8f8f2f904bacaa3148f"},{"fixed":"f1993dc4e0b33050b8f72a3558ee88b24c4063b2"},{"fixed":"97121587579e703fe653160f3a2936661d1db2ad"}],"database_specific":{"extracted_events":[{"source":"CPE_STRING","cpe":"cpe:2.3:a:opensc_project:opensc:0.23.0:-:*:*:*:*:*:*","range":[{"introduced":"0.23.0-NA"},{"last_affected":"0.23.0-NA"}]},{"range":[{"introduced":"0.23.0-rc1"},{"last_affected":"0.23.0-rc1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:opensc_project:opensc:0.23.0:rc1:*:*:*:*:*:*"},{"range":[{"introduced":"0.23.0-rc2"},{"last_affected":"0.23.0-rc2"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:opensc_project:opensc:0.23.0:rc2:*:*:*:*:*:*"},{"range":[{"fixed":"f1993dc4e0b33050b8f72a3558ee88b24c4063b2"}],"source":"REFERENCES_COMMIT"},{"original_tag":"0.24.0-rc1","range":[{"fixed":"97121587579e703fe653160f3a2936661d1db2ad"}],"source":"REFERENCES_TAG"}]}}],"versions":["0.23.0-NA","0.23.0-rc1","0.23.0-rc2","0.23.0"],"database_specific":{"vanir_signatures":[{"id":"CVE-2023-4535-03425f31","signature_type":"Line","signature_version":"v1","source":"https://github.com/opensc/opensc/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2","target":{"file":"src/libopensc/card-myeid.c"},"deprecated":false,"digest":{"line_hashes":["152542717135334218443889697606128315288","296047678543260417019236930328633218336","180839882553161829417192299166690785606","177003064632393411628735226073418469645","63572039278225233062514022002267837018","50210188395128373171813607616336170554","253410811626775743200720695910653476468","84683505816664426062331975847080569803","117321524271096141511486298431669699340","308101261742640739054787516047978766371","110196384570917267734850129568450163726","100228438357547854724695792188021159109","124515532821682404390025202154034169682","189811264767265632643640001083953991077"],"threshold":0.9}},{"target":{"function":"myeid_enc_dec_sym","file":"src/libopensc/card-myeid.c"},"deprecated":false,"digest":{"function_hash":"246676491618527353254962229597535780088","length":4543},"id":"CVE-2023-4535-4474a0fd","signature_type":"Function","signature_version":"v1","source":"https://github.com/opensc/opensc/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2"}],"vanir_signatures_modified":"2026-11-08T07:06:11Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-4535.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L"}]}