CVE-2026-12340
Last modified
CVE-2026-12340 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
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).
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Wolfssl | Wolfssl | >= 5.6.4, < 5.9.2 |
References
- https://github.com/wolfSSL/wolfssl/pull/10641Issue Tracking, Patch
- https://www.wolfssl.com/docs/security-vulnerabilities/Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-12340?
How severe is CVE-2026-12340?
How do I fix CVE-2026-12340?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-123389Use after free in Quality Windows Audio/Video Experience (QW…7
- CVE-2026-12339A Zip Slip vulnerability in the WebUI ISP Upgrade functional…6.9
- CVE-2026-123390Deserialization of untrusted data in Microsoft Office ShareP…8.8
- CVE-2026-123391Incorrect authorization in Microsoft Office SharePoint allow…8.8
- CVE-2026-123394Heap-based buffer overflow in Microsoft Office Word allows a…8.8
- CVE-2026-123395Improper control of generation of code ('code injection') in…5.9
- CVE-2026-12341This vulnerability impacts all versions of IdentityIQ and al…9.8
- CVE-2026-123418The Church Admin plugin for WordPress is vulnerable to Store…7.2
- CVE-2026-12342This vulnerability impacts all versions of IdentityIQ and al…9.6
- CVE-2026-123424Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123425Rejected reason: This CVE ID has been rejected as a duplicat…
- CVE-2026-123426Rejected reason: This CVE ID has been rejected as a duplicat…
Are you affected by CVE-2026-12340?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
