CVE-2026-6331

HMAC zero-length tag forgery in EVP_DigestVerifyFinal

State
Published
Severity
2.1 Low
Published
Jun 25, 2026
Updated
Jun 26, 2026
Reserved
Apr 15, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.02.1 LowCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NwolfSSL

Weaknesses

  • CWE-347 Improper Verification of Cryptographic Signature

Affected Products

ProductVersions
wolfSSLwolfSSL
  • 3.15.5 through 5.9.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.