Opensc: out-of-bounds read in myeid driver handling encryption using symmetric keys
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Out-of-bounds read in OpenSC MyEID driver allows attackers with physical access to leak sensitive data via crafted smart card APDU responses.
Vulnerability
An out-of-bounds read vulnerability exists in the MyEID driver of OpenSC when handling symmetric key encryption. The flaw is triggered during processing of APDU responses from a smart card or USB device. Affected versions include OpenSC before 0.23.0-3.el9_3 on Red Hat Enterprise Linux and upstream versions before 0.24.0 [1][4].
Exploitation
An attacker must have physical access to the target computer and a specially crafted USB device or smart card. By inserting the malicious device, the attacker can send manipulated APDU responses that trigger the out-of-bounds read in the MyEID driver [2].
Impact
Successful exploitation allows the attacker to read out-of-bounds memory, potentially disclosing sensitive data such as cryptographic keys or other confidential information. This could lead to unauthorized access to the system's security assets [2].
Mitigation
Red Hat has released a fix in opensc-0.23.0-3.el9_3 as part of RHSA-2023:7879 [1]. Upstream, the issue is resolved in OpenSC version 0.24.0 [3]. Users should update to the latest patched version. No workaround is documented.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
12cpe:/o:redhat:enterprise_linux:7+ 2 more
- cpe:/o:redhat:enterprise_linux:7
- cpe:/o:redhat:enterprise_linux:8
- cpe:/o:redhat:enterprise_linux:9::baseosrange: 0:0.23.0-3.el9_3
- Range: <0.24.0-rc1
- osv-coords8 versionspkg:deb/ubuntu/opensc@0.15.0-1ubuntu1+esm1?arch=source&distro=esm-apps/xenialpkg:deb/ubuntu/opensc@0.17.0-3ubuntu0.1~esm1?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/opensc@0.20.0-3?arch=source&distro=focalpkg:deb/ubuntu/opensc@0.22.0-1ubuntu2?arch=source&distro=jammypkg:deb/ubuntu/opensc@0.25.0~rc1-1build2?arch=source&distro=noblepkg:deb/ubuntu/opensc@0.25.1-2ubuntu1?arch=source&distro=oracularpkg:rpm/almalinux/openscpkg:rpm/opensuse/opensc&distro=openSUSE%20Tumbleweed
>= 0+ 7 more
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: >= 0
- (no CPE)range: < 0.23.0-3.el9_3
- (no CPE)range: < 0.23.0-3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- access.redhat.com/errata/RHSA-2023:7879mitrevendor-advisoryx_refsource_REDHAT
- access.redhat.com/security/cve/CVE-2023-4535mitrevdb-entryx_refsource_REDHAT
- bugzilla.redhat.com/show_bug.cgimitreissue-trackingx_refsource_REDHAT
- github.com/OpenSC/OpenSC/commit/f1993dc4e0b33050b8f72a3558ee88b24c4063b2mitre
- github.com/OpenSC/OpenSC/issues/2792mitre
- github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1mitre
News mentions
0No linked articles in our index yet.