Skip to main content

wolfSSL CVE-2026-7531

| EUVDEUVD-2026-39554 LOW
Use After Free (CWE-416)
2026-06-25 facts@wolfssl.com GHSA-w9rp-wwm2-fwmr
2.3
CVSS 4.0 · Vendor: wolfssl
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Operate malicious TLS 1.3 server
  2. Delivery
    Redirect or lure PQC-hybrid-enabled wolfSSL client to connect
  3. Exploit
    Serve SECP256R1MLKEM768 ServerHello with invalid X9.63 ECDH marker
  4. Install
    wc_ecc_import_x963 fails after ProcessEcc_ex frees aliased key pointer
  5. C2
    keyShareEntry->key left dangling
  6. Execute
    wolfSSL_free triggers use-after-free in TLSX_KeyShare_FreeAll
  7. Impact
    Client process crash or heap corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the wolfSSL client binary to be compiled with all of the following non-default build flags simultaneously: WOLFSSL_TLS13 (TLS 1.3 enabled), WOLFSSL_HAVE_MLKEM (ML-KEM support), WOLFSSL_PQC_HYBRIDS (PQC hybrid groups enabled), NO_ML_KEM_768 not defined (ML-KEM-768 permitted), HAVE_ECC and NO_ECC_SECP not set (SECP curves available), and WOLFSSL_MLKEM_NO_DECAPSULATE and WOLFSSL_MLKEM_NO_MAKE_KEY not defined. The client must also actively negotiate a SECP256R1MLKEM768 key share with the server - the test confirms this requires calling wolfSSL_UseKeyShare with WOLFSSL_SECP256R1MLKEM768. The attacker must control or impersonate the TLS 1.3 server; this is not a server-side or peer-to-peer vulnerability. Client interaction is required (the client application must initiate the connection). Standard wolfSSL builds without PQC hybrid flags are entirely unaffected. Exploitation produces client-side crash or memory corruption only; no demonstrated path to confidentiality or integrity compromise exists in the available data.

Impact

The CVSS 4.0 score of 2.3 accurately characterizes this as a low-severity, low-priority issue in the absence of other signals. The vector AV:N/AC:H/AT:P/PR:N/UI:P reflects that while the attack is network-delivered, it requires high complexity (malformed key share from a controlled server), a specific prerequisite (PQC hybrid build flags enabled - AT:P), and client-initiated user interaction. Impact is limited to VA:L on the vulnerable client process only, with no confidentiality or integrity consequence. No EPSS score is available in the provided data. There is no CISA KEV listing and no public exploit code identified at time of analysis. The test case in PR #10327 reproduces the crash under ASAN, confirming exploitability under controlled lab conditions, but exploitation in production requires a non-default wolfSSL build with WOLFSSL_PQC_HYBRIDS and related flags - a configuration uncommon in most current deployments. The prior incomplete fix (CVE-2026-5460 in 5.9.1) means patched-but-still-vulnerable instances exist, which is worth tracking if PQC hybrid builds are in use.

Exploit ScenarioDerived

An attacker operating a malicious TLS 1.3 server - or positioned to intercept a client connection via DNS hijacking or BGP hijack - presents a ServerHello with a SECP256R1MLKEM768 KeyShare whose 65-byte ECDH portion uses the invalid X9.63 leading byte 0x05 (valid markers are 0x04, 0x06, 0x07) while keeping the total key_exchange length correct (1153 bytes). The wolfSSL client's wc_ecc_import_x963 rejects the malformed point after ProcessEcc_ex has already freed the aliased key pointer, leaving keyShareEntry->key dangling; the subsequent wolfSSL_free call then crashes the client process via use-after-free and double-free in TLSX_KeyShare_FreeAll.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

Use-after-free in wolfSSL's TLS 1.3 PQC hybrid KeyShare processing exposes clients built with post-quantum hybrid support to a crash or memory corruption when connecting to a malicious server. This is a bypass of the incomplete fix for CVE-2026-5460 shipped in 5.9.1 - the pointer alias between keyShareEntry->key and ecc_kse->key in TLSX_KeyShare_ProcessPqcHybridClient is not re-synchronized after the inner ECC processing function frees its copy, leaving a dangling pointer that TLSX_KeyShare_FreeAll later passes to wc_ecc_free and XFREE. No public exploit or CISA KEV listing exists; the CVSS 4.0 score of 2.3 reflects limited real-world impact due to high attack complexity and non-default build requirements.

RemediationAI

Apply the upstream fix from GitHub PR #10327 (https://github.com/wolfSSL/wolfssl/pull/10327) once a tagged release incorporating it becomes available; a specific patched release version is not confirmed in the available data - monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for an official release announcement. As an immediate compensating control, rebuild wolfSSL without PQC hybrid support by omitting WOLFSSL_PQC_HYBRIDS and WOLFSSL_HAVE_MLKEM build flags; this eliminates the vulnerable code path entirely but removes post-quantum key exchange capability, which may conflict with PQC readiness requirements. Alternatively, restrict TLS client connections to trusted, authenticated servers using certificate pinning or a private PKI, which prevents the malicious-server scenario but does not eliminate the defect and adds operational complexity for certificate rotation.

Affected VersionsENISA

wolfSSL 5.8.0 ≤5.9.1

Affected Packages

euvd wolfssl no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

wolfSSL is a lightweight, embedded TLS/SSL library widely used in IoT, automotive, and FIDO2 contexts. The affected function is TLSX_KeyShare_ProcessPqcHybridClient in src/tls.c, which handles TLS 1.3 key exchange for PQC hybrid groups - specifically SECP256R1MLKEM768, combining ECDH over SECP256R1 with ML-KEM-768 (formerly Kyber). CWE-416 (Use-After-Free) is the root cause: the inner function ProcessEcc_ex aliases ecc_kse->key to keyShareEntry->key, then unconditionally frees and NULLs ecc_kse->key during its error-path cleanup (triggered when wc_ecc_import_x963 rejects an invalid X9.63 point marker such as 0x05). The outer keyShareEntry->key retains the now-freed pointer. When wolfSSL_free subsequently invokes TLSX_KeyShare_FreeAll, wc_ecc_free and XFREE are called on that stale pointer, producing a use-after-free and double-free detectable by ASAN. The fix in PR #10327 re-syncs keyShareEntry->key = ecc_kse->key after the inner call returns, correctly inheriting whatever cleanup state the inner function left in ecc_kse->key (NULL on cleanup, live pointer on early exit).

Know when Wolfssl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wolfssl) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.1 LOW

Attacker controls the server so AV:N and PR:N; non-default PQC hybrid build and client-initiated connection required so AC:H and UI:R; only client availability impacted at low severity.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfssl).

CVSS VectorVendor: wolfssl

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Use-after-free in PQC hybrid key-share handling. This is an incomplete-fix follow-up to CVE-2026-5460 (released in 5.9.1): a malicious TLS 1.3 server sending a truncated PQC hybrid KeyShare can still trigger the error cleanup path to operate on freed memory.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
widely deployed embedded TLS library in IoT, automotive, and FIDO2 stacks
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2017-13099 HIGH POC
7.5 Dec 13

wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i

CVE-2017-2800 CRITICAL POC
9.8 May 24

A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting

CVE-2026-89136 HIGH POC
8.3 Sep 27

Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve

CVE-2026-93302 HIGH POC
8.3 Sep 27

wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C

CVE-2026-89102 HIGH POC
8.3 Sep 27

Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce

CVE-2015-6925 HIGH POC
7.5 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra

CVE-2022-39173 HIGH POC
7.5 Sep 29

In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (

CVE-2022-38152 HIGH POC
7.5 Aug 31

An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2020-11713 HIGH POC
7.5 Apr 12

wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra

CVE-2019-18840 HIGH POC
7.5 Nov 09

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh

CVE-2020-15309 HIGH POC
7.0 Aug 21

An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).

CVE-2020-24613 MEDIUM POC
6.8 Aug 24

wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy