{"id":"CVE-2026-12340","published":"2026-06-25T19:36:21Z","modified":"2026-06-26T13:59:21Z","title":"Out-of-bounds heap read in SM2/SM3 certificate Subject Key Identifier computation","vendor":"wolfSSL","product":"wolfSSL","tier":"tail","description":{"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00298,"percentile":0.22995,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/pull/10641","tags":["patch"]},{"url":"https://www.wolfssl.com/docs/security-vulnerabilities/","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":4.6},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"wolfssl","affectedVersions":[{"vendor":"wolfSSL","product":"wolfSSL","versions":[">= 5.6.4, <= 5.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-26T13:59:13.033180Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39547","exploited":false,"provenance":"source"}}