
CVE catalog
CVE-2026-12340
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 t
- Severity
- Medium · CVSS 6.3
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.30% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | wolfssl | sid | 5.9.2-1.2 | fixed |
| Debian | wolfssl | trixie | 5.7.2-0.1+deb13u2 | vulnerable |
| Debian | wolfssl | bookworm | 5.5.4-2+deb12u2 | vulnerable |
| Debian | wolfssl | bookworm-security | 5.5.4-2+deb12u3 | vulnerable |
| Cpe | wolfssl | Not reported | 5.9.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | wolfssl | source | sid | 5.9.2-1 | unimportant | Not reported | Not reported |
| Debian | wolfssl | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | wolfssl | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Cpe | wolfssl | cpe | Not reported | 5.9.2 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libwolfssl35]Affected
Source package: [wolfssl]
Details (4)
5.5.4-2+deb12u2· amd64 · bookwormAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u2· arm64 · bookwormAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u3· amd64 · bookworm-securityAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u3· arm64 · bookworm-securityAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
- [libwolfssl-dev]Affected
Source package: [wolfssl]
Details (4)
5.5.4-2+deb12u2· amd64 · bookwormAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u2· arm64 · bookwormAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u3· amd64 · bookworm-securityAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
5.5.4-2+deb12u3· arm64 · bookworm-securityAffected
nvd · wolfssl · debian · bookworm; nvd · wolfssl · debian · 12
[Debian 13 (Trixie)]
- [libwolfssl42t64]Affected
Source package: [wolfssl]
Details (2)
5.7.2-0.1+deb13u1· amd64 · trixieAffected
nvd · wolfssl · debian · 13
5.7.2-0.1+deb13u1· arm64 · trixieAffected
nvd · wolfssl · debian · 13
- [libwolfssl-dev]Affected
Source package: [wolfssl]
Details (2)
5.7.2-0.1+deb13u1· amd64 · trixieAffected
nvd · wolfssl · debian · 13
5.7.2-0.1+deb13u1· arm64 · trixieAffected
nvd · wolfssl · debian · 13
Observed: