CVE-2026-12340: Out-of-bounds heap read in SM2/SM3 certificate Subject Key Identifier computation

Published Jun 25, 2026
·
Updated

Out-of-bounds heap read during SM2/SM3 certificate signature verification. When parsing a certificate with an SM3wSM2 signature, the Subject Key Identifier computation reads the trailing 65 bytes of the public key without checking that the key is at least that long. A public key shorter than 65 bytes results in an out-of-bounds heap read, leading to a potential crash (denial of service); there is no out-of-bounds write. Note this only affects builds with SM2 support (--enable-sm2 or --enable-all).

Affected Software

2 affected components
OpenSSL OpenSSL=
wolfSSL wolfssl>=5.6.4<5.9.2

Event History

Jun 25, 2026
CVE Published
via MITRE·07:36 PM
Data Sourced
via MITRE·07:36 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-12340?

The severity of CVE-2026-12340 is rated as medium with a CVSS score of 6.3.

2

How do I fix CVE-2026-12340?

To fix CVE-2026-12340, you should apply the available patches provided by the software maintainers.

3

What software is affected by CVE-2026-12340?

CVE-2026-12340 affects the OpenSSL and wolfSSL software libraries.

4

What type of vulnerability is CVE-2026-12340?

CVE-2026-12340 is an out-of-bounds heap read vulnerability related to SM2/SM3 certificate signature verification.

5

What is the risk associated with CVE-2026-12340?

CVE-2026-12340 has a risk rating of 43, indicating potential security concerns that should be addressed promptly.

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