CVE-2026-6331

HMAC zero-length tag forgery in EVP_DigestVerifyFinal

Published Jun 25, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to forge a cryptographic signature by submitting a zero-length or otherwise truncated HMAC tag that is erroneously accepted as valid during EVP_DigestVerifyFinal verification. As a result, an attacker could have a message falsely authenticated, effectively bypassing integrity checks that rely on HMAC verification. This weaknesses is identified as CWE-347, indicating a failure to properly enforce cryptographic checks. The impact is limited to the integrity of data protected by this verification path, and does not expose confidentiality directly.

Affected Systems

The affected product is wolfSSL, as noted by the CNA vendor/product name. No specific versions are listed in the CNA data, so it is necessary to review the release notes of wolfSSL or consult the vendor for the relevant range affected by the bug.

Risk and Exploitability

The CVSS score of 2.1 indicates a very low overall severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting a low likelihood of widespread exploitation at the present time. The most probable attack vector is the provision of a forged signature or HMAC tag to the application. Based on the description, it is inferred that the flaw could be exploited remotely or locally by any entity that can supply input to the HMAC verification routine. However, exploitation requires the attacker to control or influence the signature data, which may limit the attack surface.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a wolfSSL release that includes the fix for zero-length HMAC tag validation
  • Verify that the HMAC verification routine enforces an exact tag length equal to the MAC length before performing the cryptographic check
  • If an upgrade cannot be performed immediately, implement an application-layer check to reject signatures shorter than the expected MAC length
  • Consider disabling or removing any code paths that accept zero-length or truncated HMAC tags if they are not required for legitimate operations

Generated by OpenCVE AI on June 25, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4683-1 wolfssl security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wolfssl
Wolfssl wolfssl
Vendors & Products Wolfssl
Wolfssl wolfssl
Type Values Removed Values Added
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.
Title HMAC zero-length tag forgery in EVP_DigestVerifyFinal
Weaknesses CWE-347
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature

Sources

Status
PUBLISHED
Assigner
wolfSSL
Published
Updated
Jun 26, 2026, 1:53 PM
Reserved
Apr 15, 2026, 3:08 AM
Status
Analyzed
Published
Jun 25, 2026, 10:17 PM
Modified
Jun 27, 2026, 7:48 PM