CVE-2026-6681

PKCS#7 decode ignores caller output buffer size, writing past buffer bounds

State
Published
Severity
1.0 Low
Published
Jun 25, 2026
Updated
Jun 26, 2026
Reserved
Apr 20, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.01.0 LowCVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:ClearwolfSSL

Weaknesses

  • CWE-787 Out-of-bounds Write
  • CWE-120 Buffer Copy without Checking Size of Input

Affected Products

ProductVersions
wolfSSLwolfSSL
  • 3.10.0 through 5.9.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.