Home

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.

PUBLISHED Reserved 2026-04-15 | Published 2026-06-25 | Updated 2026-06-26 | Assigner wolfSSL




LOW: 2.1CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Problem types

CWE-347 Improper Verification of Cryptographic Signature

Product status

Default status
unaffected

3.15.5 (semver)
affected

Credits

Nicholas Carlini from Anthropic finder

References

github.com/wolfSSL/wolfssl/pull/10192 patch

www.wolfssl.com/docs/security-vulnerabilities/

cve.org (CVE-2026-6331)

nvd.nist.gov (CVE-2026-6331)

Download JSON