{"id":"CVE-2026-12340","aliases":["CVE-2026-12340"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds heap read in SM2/SM3 certificate Subject Key Identifier computation","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"}],"published":"2026-06-25T19:36:21.468Z","modified":"2026-06-26T18:54:32.567Z","severity":{"scorer":"wolfSSL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"wolfSSL","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"semver","introduced":"5.6.4","lastAffected":"5.9.1","status":"affected"}],"vendor":"wolfSSL","product":"wolfSSL","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.6.4","fixed":"5.9.2"}],"vendor":"wolfssl","product":"wolfssl","cpe":"cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/pull/10641","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://www.wolfssl.com/docs/security-vulnerabilities/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["David Pokora, Trail of Bits (in collaboration with Anthropic)"],"assigner":"wolfSSL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-26T13:59:13.033Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12340","url":"https://www.cve.org/CVERecord?id=CVE-2026-12340","licence":"CVE Terms of Use","modified":"2026-06-26T13:59:21.953Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12340","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12340","licence":"Public domain","modified":"2026-06-26T18:54:32.567Z"}],"updatedAt":"2026-11-25T22:59:26.429Z","epss":{"score":0.00387,"percentile":0.34919,"date":"2026-12-01T12:00:22.000Z"}}