1. CVE archive
  2. 2026
  3. CVE-2026-6331

CVE-2026-6331

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 7.5 – High

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

VendorProductVersionPlatform
wolfssl wolfssl >= 3.15.5 < 5.9.2 –
All 154 Wolfssl vulnerabilities

Vulnerability type

CWE-347 Improper Verification of Cryptographic Signature

The product does not verify, or incorrectly verifies, the cryptographic signature for data.

Impact on systems

ScopeImpact
Access Control, Integrity, Confidentiality Gain Privileges or Assume Identity, Modify Application Data, Execute Unauthorized Code or Commands
An attacker could gain access to sensitive data and possibly execute unauthorized code.

All 961 CWE-347 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org