Skip to main content

wolfSSL CVE-2026-8720

| EUVDEUVD-2026-39579 MEDIUM
Improper Validation of Integrity Check Value (CWE-354)
2026-06-25 wolfSSL GHSA-34qm-63x6-fcm3
5.9
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

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

  1. Access
    Identify target protocol using wolfSSL HMAC-BLAKE2 with key exceeding block size
  2. Delivery
    Intercept or inject message to be authenticated
  3. Exploit
    Craft tampered message payload
  4. Execution
    Compute MAC from key alone (message discarded by buggy HmacFinal)
  5. Persist
    Submit forged message with computed MAC
  6. Impact
    Target verifies MAC successfully, accepts tampered message

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Integrity verification
Exploitation Conditions

Exploitation requires that the target application calls wc_Blake2bHmacFinal or wc_Blake2sHmacFinal - APIs introduced exclusively in wolfSSL 5.9.0 - and supplies a key strictly longer than the respective BLAKE2 block size: more than 128 bytes for BLAKE2b, or more than 64 bytes for BLAKE2s. Applications using shorter keys are completely unaffected regardless of wolfSSL version. The attacker must be able to submit messages that are verified by the vulnerable MAC check, meaning the exposure surface is any protocol or system boundary where wolfSSL HMAC-BLAKE2 is used for authentication. Exploitation is limited to wolfSSL 5.9.0 and later; prior versions did not include these APIs. The AV:L vendor assignment suggests the primary threat model is a local context, but if the MAC check gates a network-facing protocol, network-based MAC forgery is equally feasible. There is no requirement for attacker privileges to trigger the flaw - the bug is unconditional given the key-length condition. What limits exploitation is the specific API requirement (not the more common HMAC-SHA APIs), the wolfSSL version floor of 5.9.0, and the long-key prerequisite.

Impact

The vendor-assigned CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N, score 5.9) accurately reflects the high integrity impact tempered by the local attack vector and the AT:P prerequisite requiring keys above the block size threshold. The AT:P condition is a real limiter in practice: BLAKE2b's 128-byte and BLAKE2s's 64-byte block sizes mean many typical HMAC key deployments fall below the threshold and are unaffected. However, derived keys or pre-shared secrets from variable-length sources can and do exceed these sizes, making the exposure non-theoretical. The vulnerability is not listed in CISA KEV and no proof-of-concept code was identified, so active exploitation is not confirmed at time of analysis. Despite the moderate overall score, the cryptographic severity is severe within scope: a MAC that is fully independent of the message provides zero authentication integrity. Any system relying on this API for firmware verification, protocol authentication, or session binding is critically exposed when key lengths exceed the block size. EPSS data was not included in the provided intelligence; risk for organizations using wolfSSL 5.9.0+ in embedded, IoT, or automotive contexts should be treated as high priority pending patch availability.

Exploit ScenarioDerived

An attacker targeting a network protocol that uses wolfSSL HMAC-BLAKE2 for message integrity, where the shared key exceeds the block size, intercepts a legitimate authenticated message and substitutes a modified payload while computing a MAC using only the key material. Because the receiving endpoint's wc_Blake2bHmacFinal also produces a MAC independent of message content under the same long-key condition, the forged MAC matches the verification output and the tampered message is accepted as authentic. No public proof-of-concept code was identified at the time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 25, 2026

MAC forgery in wolfSSL 5.9.0 and later allows an attacker to authenticate arbitrary tampered messages when HMAC-BLAKE2 is used with keys exceeding the BLAKE2 block size. The wc_Blake2bHmacFinal and wc_Blake2sHmacFinal functions incorrectly reused the running message hash state to process oversized keys, discarding accumulated message data and producing a MAC that depends solely on the key, not the message. No public exploit has been identified at time of analysis, but the integrity failure is straightforward to exploit in any protocol or application that uses wolfSSL HMAC-BLAKE2 with keys longer than 128 bytes (BLAKE2b) or 64 bytes (BLAKE2s).

RemediationAI

Apply the fix from GitHub PR #10447 (https://github.com/wolfSSL/wolfssl/pull/10447) once a tagged wolfSSL release incorporating it is published; monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for the confirmed release version. No specific patched version number was independently confirmed in the available data, so do not upgrade to an unverified build. As an immediate compensating control, audit all calls to wc_Blake2bHmacFinal and wc_Blake2sHmacFinal and enforce that supplied keys are at most 128 bytes for BLAKE2b or 64 bytes for BLAKE2s - keys at or below the block size do not trigger the bug, though this may require protocol changes if key derivation produces longer outputs. Alternatively, migrate authentication-critical code paths from HMAC-BLAKE2 to HMAC-SHA256 or HMAC-SHA3, noting that doing so may require interoperability coordination with remote peers. Applications using wolfSSL's pre-existing HMAC-SHA or HMAC-SHA3 APIs are unaffected by this specific flaw.

Affected VersionsENISA

wolfSSL 5.9.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

BLAKE2 is a cryptographic hash function standardized in RFC 7693, supporting two variants: BLAKE2b (128-byte block size, 64-byte output) and BLAKE2s (64-byte block size, 32-byte output). wolfSSL (cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*) added HMAC-BLAKE2 APIs in version 5.9.0 as wc_Blake2bHmacInit/Final and wc_Blake2sHmacInit/Final. The HMAC construction requires that keys exceeding the hash block size be pre-hashed before use. The bug (CWE-354: Improper Validation of Integrity Check Value) manifests in the HmacFinal functions, which reused the same Blake2b or Blake2s state object already holding accumulated message data to perform the key-hashing step. This reinitializes the same state, destroying all buffered message content, so the resulting MAC is computed over an empty message concatenated with the padded key hash rather than the actual input. The PR #10447 fix introduces a separate keyHash local variable for key pre-hashing, adds ForceZero to securely clear temporary key material, and includes regression tests with long-key vectors to prevent recurrence.

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 5.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.1 MEDIUM

AV:L per vendor assessment; AC:H because key must strictly exceed block size (maps from CVSS 4.0 AT:P); I:H for complete MAC forgery; no confidentiality or availability impact.

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

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

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

DescriptionCVE.org

wc_Blake2bHmacFinal and wc_Blake2sHmacFinal discard the message when the key length exceeds the block size, producing a MAC that is independent of the input. When the supplied key is longer than the BLAKE2 block size the key-hashing branch reinitialized the running hash state, discarding the accumulated message data, so the resulting MAC depended only on the key and not on the message being authenticated. This bug is specific to the HMAC-BLAKE2 APIs that were added in wolfSSL version 5.9.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular embedded and IoT TLS library, significant in automotive and RTOS sectors
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

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