# CVE-2026-0819: Stack buffer overflow in PKCS7 SignedData encoding with custom signed attributes

- Severity: Low 2.2 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- 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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-03-19T16:54:33.442Z
- Modified: 2026-06-17T10:11:26.320Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: wolfSSL

## Description

A stack buffer overflow vulnerability exists in wolfSSL's PKCS7 SignedData encoding functionality. In wc_PKCS7_BuildSignedAttributes(), when adding custom signed attributes, the code passes an incorrect capacity value (esd->signedAttribsCount) to EncodeAttributes() instead of the remaining available space in the fixed-size signedAttribs[7] array. When an application sets pkcs7->signedAttribsSz to a value greater than MAX_SIGNED_ATTRIBS_SZ (default 7) minus the number of default attributes already added, EncodeAttributes() writes beyond the array bounds, causing stack memory corruption. In WOLFSSL_SMALL_STACK builds, this becomes heap corruption. Exploitation requires an application that allows untrusted input to control the signedAttribs array size when calling wc_PKCS7_EncodeSignedData() or related signing functions.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: from 5.5.0 before 5.9.0

## Every score

- wolfSSL: CVSS:4.0 2.2 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/wolfSSL/wolfssl/pull/9630> (issue-tracking, patch)

## Sources

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

---

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