CVE-2026-12340

High

Description

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).

SeverityHigh
CVSS7.5
Exploit probability—
ProductWolfssl
PublishedJun 25, 2026
First seenJun 25, 2026

How to fix

Update
  • wolfssl wolfssl5.9.2 or later

Affected products

ProductAffected versionsFixed in
wolfssl wolfssl5.6.4 ≤ v < 5.9.25.9.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.