Vulnerability · Published Jun 25, 2026 · Assigned by wolfSSL
CVE-2026-6329PKCS#12 MAC verification uses attacker-controlled comparison length
Medium 6.0
In plain English
A medium-severity security flaw in wolfSSL from wolfSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
PKCS#12 MAC verification uses an attacker-controlled comparison length, weakening the integrity check on the MAC and allowing a mismatched MAC to be accepted. The PKCS#12 verify path compared the locally computed HMAC against the MAC parsed from the PKCS#12 structure using a length taken directly from the attacker-supplied input, without first verifying that it equals the length of the digest actually produced by the configured algorithm. A truncated or zero-length stored MAC could therefore be accepted, defeating the integrity protection of the MAC.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | wolfssl | 5.9.2-r0 | ALPINE-CVE-2026-6329 |
| Debian:12 | wolfssl | 5.5.4-2+deb12u3 | DEBIAN-CVE-2026-6329 |
| Debian:13 | wolfssl | 5.7.2-0.1+deb13u2 | DEBIAN-CVE-2026-6329 |
| Ubuntu:22.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-6329 |
| Ubuntu:24.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-6329 |
| Ubuntu:25.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-6329 |
| Ubuntu:26.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-6329 |
| Ubuntu:26.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-6329 |
Affected products (as reported)
Weakness: CWE-347 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N