Skip to main content
VulnerabilityPublished Updated

CVE-2026-12340: Out-of-bounds heap read during SM2/SM3 certificate signature verification

Source GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

AI-suggested

Until a fix is available, avoid processing certificates with SM3wSM2 signatures that contain public keys shorter than 65 bytes. If possible, disable SM2 support in builds to prevent exposure.

Description

An out-of-bounds heap read vulnerability occurs during SM2/SM3 certificate signature verification when parsing certificates with an SM3wSM2 signature. The Subject Key Identifier computation reads 65 trailing bytes of the public key without verifying the key length, causing a heap read beyond the buffer if the key is shorter than 65 bytes. This can lead to a denial of service via application crash. The issue affects only builds with SM2 support enabled.

References

Community reviews

Loading reviews…