7.1
CWE
125 119
Advisory Published
Updated

CVE-2023-2977: Buffer Overflow

First published: Tue May 30 2023(Updated: )

A vulnerbility was found in OpenSC. This security flaw cause a buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package. The attacker can supply a smart card package with malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for 2 tags, where remaining length is wrongly caculated due to moved starting pointer. This leads to possible heap-based buffer oob read. In cases where ASAN is enabled while compiling this causes a crash. Further info leak or more damage is possible.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Opensc Project Opensc=0.23.0
Redhat Enterprise Linux=8.0
Redhat Enterprise Linux=9.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID for this OpenSC vulnerability?

    The vulnerability ID for this OpenSC vulnerability is CVE-2023-2977.

  • What is the severity of CVE-2023-2977?

    CVE-2023-2977 has a severity rating of 7.1 (high).

  • What is the impact of the buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package?

    The buffer overrun vulnerability in pkcs15 cardos_have_verifyrc_package allows an attacker to supply a smart card package with a malformed ASN1 context, potentially leading to arbitrary code execution or a denial of service.

  • Which versions of OpenSC are affected by CVE-2023-2977?

    OpenSC version 0.23.0 is affected by CVE-2023-2977.

  • How can I fix the CVE-2023-2977 vulnerability in OpenSC?

    To fix the CVE-2023-2977 vulnerability in OpenSC, update to a version that includes the fix provided in the OpenSC GitHub repository pull request.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203