Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-12340: Out-of-bounds heap read during SM2/SM3 certificate signature verification

37
Routine
HIGH 7.5REMOTEUPGRADE

CVE-2026-12340 is a high-severity flaw (CVSS 7.5) affecting wolfssl. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 bui

Why this priority

  • High severity
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.5 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.3% (top 78%)
CISA exploited listNo
WeaknessCWE-125
Published2026-06-25
Last modified2026-06-26
Publisher (CNA): wolfSSL Inc. · Vendor: wolfssl

Share: LinkedIn · X · Reddit

Last updated 2026-06-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

wolfssl wolfssl UPGRADE
Affected: >= 5.6.4 and < 5.9.2
Fixed in: 5.9.2
Safe to downgrade to: a release before 5.6.4
1. Check installed version
apt-cache policy wolfssl || rpm -q wolfssl || wolfssl --version
2. UPGRADE to 5.9.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade wolfssl
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade wolfssl
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 5.6.4 (Debian / Ubuntu)
apt-cache madison wolfssl sudo apt install wolfssl=<VERSION_BEFORE_5.6.4> sudo apt-mark hold wolfssl
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list wolfssl sudo dnf downgrade wolfssl-<VERSION_BEFORE_5.6.4> sudo dnf versionlock add wolfssl
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-12340?

wolfssl: upgrade to 5.9.2. Exact commands for each OS are on this page.

Is CVE-2026-12340 being exploited?

CVE-2026-12340 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-12340 affect?

CVE-2026-12340 affects wolfssl. Severity is high (CVSS 7.5). 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

How urgent is CVE-2026-12340?

Priority 37/100. High severity; Remotely exploitable, no login, no user action

Software pages

wolfSSL vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.