Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target protocol using wolfSSL HMAC-BLAKE2 with key exceeding block size
-
DeliveryIntercept or inject message to be authenticated
-
ExploitCraft tampered message payload
-
ExecutionCompute MAC from key alone (message discarded by buggy HmacFinal)
-
PersistSubmit forged message with computed MAC
-
ImpactTarget 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i
A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting
Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve
wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C
Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce
wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (
An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
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
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh
An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).
wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t
EUVD-2026-39579
GHSA-34qm-63x6-fcm3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB