CVE-2023-4535: Opensc: out-of-bounds read in myeid driver handling encryption using symmetric keys

Published Sep 27, 2023
·
Updated

An out-of-bounds read in MyEID driver handling encryption using symmetric keys. An attacker with physical access to the computer running opensc and crafted USB device or smart card that would present the system with specially crafted responses to the APDUs so they are considered a high-complexity and low-severity.

This issue is in the code handling symmetric keys, which are not widely used for example for desktop login so most of the deployments are not affected.

https://github.com/OpenSC/OpenSC/issues/2792#issuecomment-1674806651 https://github.com/OpenSC/OpenSC/wiki/OpenSC-security-advisories https://github.com/OpenSC/OpenSC/releases/tag/0.24.0-rc1

Other sources

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.

— NVD

Affected Software

18 affected componentsFixes available
redhat/opensc<0.24.0
0.24.0
debian/opensc<0.23.0-0.3+deb12u1
0.23.0-0.3+deb12u1
debian/opensc<0.23.0-2
0.23.0-2
debian/opensc<0.23.0-2
0.23.0-2
Opensc Project Opensc=0.23.0
Opensc Project Opensc=0.23.0-rc1
Opensc Project Opensc=0.23.0-rc2
Fedoraproject Fedora=38
Fedoraproject Fedora=39
redhat Enterprise Linux=9.0
debian/opensc
0.23.0-0.3+deb12u10.23.0-2
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0
alpine/opensc<0.24.0-r0
0.24.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/OpenSC to a version that resolves this vulnerability.

    Fixed in 0.24.0
  2. Upgrade

    Upgrade alpine/opensc to a version that resolves this vulnerability.

    Fixed in 0.24.0-r0
  3. Upgrade

    Upgrade debian/opensc to a version that resolves this vulnerability.

    Fixed in 0.23.0-0.3+deb12u1
  4. Upgrade

    Upgrade debian/opensc to a version that resolves this vulnerability.

    Fixed in 0.23.0-2
  5. Upgrade

    Upgrade debian/opensc to a version that resolves this vulnerability.

    Fixed in 0.23.0-0.3+deb12u1Fixed in 0.23.0-2

Event History

Sep 27, 2023
Data Sourced
08:41 AM
DescriptionSeverityAffected Software
Nov 6, 2023
CVE Published
via MITRE·04:57 PM
Data Sourced
04:57 PM
Weakness
Data Sourced
via OSV·04:57 PM
DescriptionSeverityWeakness
Nov 14, 2023
Data Sourced
05:11 PM
Remedy
Updated
05:11 PM
SeverityWeakness
Dec 18, 2023
Data Sourced
via Red Hat·11:01 AM
DescriptionSeverityAffected Software
Dec 19, 2023
Updated
04:15 PM
Affected Software
Dec 22, 2023
Updated
04:15 AM
Affected Software
Dec 23, 2023
Data Sourced
via NVD·05:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
05:15 AM
Affected Software
Jan 23, 2024
Data Sourced
via MITRE·01:45 AM
DescriptionSeverityWeakness
Feb 23, 2024
Updated
via NVD·08:13 PM
Affected Software
Sep 16, 2024
Updated
via NVD·05:16 PM
Affected Software
Nov 21, 2024
Updated
via NVD·08:35 AM
RemedyAffected Software
Nov 3, 2026
Data Sourced
via OSV·06:32 AM
Affected Software
Nov 7, 2026
Updated
via NVD·05:17 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:33 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2023-4535 vulnerability?

CVE-2023-4535 is an out-of-bounds read vulnerability found in OpenSC packages within the MyEID driver when handling symmetric key encryption.

2

How does the CVE-2023-4535 vulnerability work?

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 the data being processed by the MyEID driver.

3

What is the severity of CVE-2023-4535?

The severity of CVE-2023-4535 is medium, with a CVSS severity score of 4.5.

4

How can I fix the CVE-2023-4535 vulnerability?

To fix the CVE-2023-4535 vulnerability, update your OpenSC packages to version 0.24.0 or apply the recommended patches provided by the vendor.

5

Where can I find more information about CVE-2023-4535?

You can find more information about CVE-2023-4535 on the Red Hat Security Advisory and Bugzilla websites.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203