7.5

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

Analyzed
AliasesUBUNTU-CVE-2026-12340DEBIAN-CVE-2026-12340ALPINE-CVE-2026-12340
Published 25-06-2026Last modified 26-06-2026

Vulnerability summary

CVE-2026-12340 is a high (CVSS 7.5) Out-of-bounds Read vulnerability in wolfssl. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 22.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 25-06-2026
    PublishedVulnerability first disclosed.
  2. 26-06-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.30%

Chance of exploitation in the next 30 days

Percentile

23%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.30% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • wolfssl≥ 5.6.4, < 5.9.2-r0
Debian1 product
  • wolfsslAll versions (No fix recorded)
Ubuntu1 product
  • wolfsslAll versions (No fix recorded)
Wolfssl1 product
  • wolfssl≥ 5.6.4, ≤ 5.9.1 | ≥ 5.6.4, < 5.9.2

4 vendors · 4 products

References

6 links