CVE-2026-6331: HMAC zero-length tag forgery in EVP_DigestVerifyFinal

Published Jun 25, 2026
·
Updated

HMAC zero-length tag forgery in EVPDigestVerifyFinal, 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 Software

2 affected components
OpenSSL OpenSSL
wolfSSL wolfssl>=3.15.5<5.9.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Update OpenSSL so that the EVP_DigestVerifyFinal OpenSSL-compatibility HMAC verify path requires the supplied tag length to exactly equal the MAC length (rejects zero-length and truncated/forged tags).

Event History

Jun 25, 2026
CVE Published
via MITRE·08:56 PM
Data Sourced
via MITRE·08:56 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6331?

CVE-2026-6331 has a severity rating of low with a CVSS score of 4.0.

2

How do I fix CVE-2026-6331?

To fix CVE-2026-6331, update to the latest version of OpenSSL or wolfSSL that addresses the vulnerability.

3

What is the nature of the vulnerability in CVE-2026-6331?

CVE-2026-6331 involves a zero-length tag forgery during HMAC verification in EVP_DigestVerifyFinal.

4

Which software is affected by CVE-2026-6331?

CVE-2026-6331 affects OpenSSL and wolfSSL libraries.

5

When was CVE-2026-6331 published?

CVE-2026-6331 was published on June 25, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203