CVE-2026-6681: PKCS#7 decode ignores caller output buffer size, writing past buffer bounds
The PKCS#7 decode path ignores the caller-supplied output buffer size (outputSz), allowing decoded content to be written past the bounds of the provided buffer. This affects wolfSSL 5.9.0 and earlier and was fixed in the 5.9.1 release.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/wolfsslto a version that resolves this vulnerability.Fixed in 5.9.2-r0 - Upgrade
Upgrade
wolfSSLto a version that resolves this vulnerability.Fixed in 5.9.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-6681?
The severity of CVE-2026-6681 is low, with a CVSS score of 4.0.
What does CVE-2026-6681 affect?
CVE-2026-6681 affects wolfSSL versions 5.9.0 and earlier.
How do I fix CVE-2026-6681?
To fix CVE-2026-6681, update to wolfSSL version 5.9.1 or later.
What is the nature of the vulnerability in CVE-2026-6681?
CVE-2026-6681 is caused by the PKCS#7 decode path ignoring the caller-supplied output buffer size, allowing potential buffer overflows.
When was CVE-2026-6681 published?
CVE-2026-6681 was published on June 25, 2026.