# CVE-2026-6681: PKCS#7 decode ignores caller output buffer size, writing past buffer bounds

- Severity: Low 1.0 (CVSS:4.0, scored by wolfSSL) `CVSS: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:Clear`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-06-25T20:11:39.446Z
- Modified: 2026-06-27T20:02:40.840Z
- Weaknesses: CWE-120, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## 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.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: from 3.10.0 up to 5.9.0; from 3.10.0 before 5.9.1

## Every score

- wolfSSL: CVSS:4.0 1.0 Low `CVSS: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:Clear`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/wolfSSL/wolfssl/pull/10116> (issue-tracking, patch)
- <https://www.wolfssl.com/docs/security-vulnerabilities/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-6681](https://www.cve.org/CVERecord?id=CVE-2026-6681), CVE Terms of Use, modified 2026-06-26
- NVD: [CVE-2026-6681](https://nvd.nist.gov/vuln/detail/CVE-2026-6681), Public domain, modified 2026-06-27

---

Page: https://cve.day/CVE-2026-6681 · Whole record: https://cve.day/CVE-2026-6681.json · Rebuilt by cve.day 2026-11-25T22:59:26.436Z
