7.1
CWE
119 125
Advisory Published
CVE Published
Updated

CVE-2023-2977: Buffer Overflow

First published: Tue May 30 2023(Updated: )

A vulnerability was found in OpenSC. This issue causes a buffer overrun in the pkcs15 cardos_have_verifyrc_package. This flaw allows an attacker to supply a smart card package with a malformed ASN1 context. The cardos_have_verifyrc_package function scans the ASN1 buffer for two tags, where the remaining length is wrongly calculated due to a moved starting pointer, leading to a possible heap-based buffer out-of-bounds read. In cases where ASN is enabled while compiling, this problem causes a crash, and further information leaks or more damage is likely.

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