Home / wolfSSL / wolfSSL / CVE-2026-12340
CVE-2026-12340: is it exploited, and which versions of wolfSSL are affected and fixed?
CVE-2026-12340 is an out-of-bounds read vulnerability in wolfSSL. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: wolfSSL from 5.6.4 through 5.9.1 (CVE record by wolfSSL). Fixed in 5.9.2 (NVD). Severity: Medium (6.3, CVSS 4.0, from wolfSSL).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-12340?
Out-of-bounds heap read in SM2/SM3 certificate Subject Key Identifier computation
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).
From the CVE record by wolfSSL, last updated June 26, 2026, 13:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| wolfSSL | wolfSSL | from 5.6.4 through 5.9.1 |
As the CVE record by wolfSSL states it, last updated June 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| wolfssl | wolfssl | from 5.6.4 before 5.9.2 | application |
NVD analysis (status Analyzed), last modified June 26, 2026, 18:54 UTC.
How severe is CVE-2026-12340?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 4.0 | 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 | wolfSSL |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-12340 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, June 26, 2026)
- EPSS
- 0.39% probability of exploitation activity in the next 30 days, percentile 35.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://github.com/wolfSSL/wolfssl/pull/10641 patch
- https://www.wolfssl.com/docs/security-vulnerabilities/
Who found and reported it?
- David Pokora, Trail of Bits (in collaboration with Anthropic) (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 15, 2026
- Published
- June 25, 2026, 19:36 UTC
- CVE record updated
- June 26, 2026, 13:59 UTC by wolfSSL
- NVD
- Analyzed, last modified June 26, 2026, 18:54 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect wolfSSL?
- Sep 27, 2026CVE-2026-15442 wolfSSL: use after free
- Sep 27, 2026CVE-2026-89102 wolfSSL: improper certificate validation
- Sep 27, 2026CVE-2026-89133 wolfSSL: improper certificate validation
- Sep 27, 2026CVE-2026-89134 wolfSSL: improper certificate validation
- Sep 27, 2026CVE-2026-89135 wolfSSL: improper certificate validation
- Sep 27, 2026CVE-2026-89136 wolfSSL: authentication bypass (improper authentication)
- Sep 27, 2026CVE-2026-93302 wolfSSL: improper certificate validation
- Sep 27, 2026CVE-2026-93304 wolfSSL: incorrect Behavior Order
Questions about CVE-2026-12340
Is CVE-2026-12340 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.39% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of wolfSSL are affected by CVE-2026-12340?
wolfSSL from 5.6.4 through 5.9.1, per the CVE record by wolfSSL. The tables above give every range the sources list.
Which version fixes CVE-2026-12340?
5.9.2, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-12340?
Medium (6.3, CVSS 4.0, from wolfSSL). The severity table above shows each score with its source.
Where is the official record of CVE-2026-12340?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.