HMAC zero-length tag forgery in EVP_DigestVerifyFinal, where a zero-length tag could be accepted as valid during HMAC verification.
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- —
- Published
- Jun 25, 2026
- In the news
- Not yet
What to do
A serious security flaw in Wolfssl that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Wolfssl
- 3.15.5 to through 5.9.1
Description
HMAC zero-length tag forgery in EVP_DigestVerifyFinal, where a zero-length tag could be accepted as valid during HMAC verification. In the OpenSSL-compatibility HMAC verify path the supplied signature length was only checked as not exceeding the MAC length, so a zero-length or otherwise truncated tag could pass verification. The fix requires the supplied tag length to exactly equal the MAC length and rejects a zero-length MAC, so a forged short or empty tag is no longer accepted.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-6331 published (CVSS 7.5) (Jun 25, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Jun 25, 2026
- CVECVE-2026-6331 published (CVSS 7.5)CVE Program · 22:17 UTC
References 2
- github.com Patch /wolfSSL/wolfssl/pull/10192
- www.wolfssl.com Vendor Advisory /docs/security-vulnerabilities/