CVE-2026-0819
No fix known EPSS <1%CVSS 2.2
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.
Products: wolfssl
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Debian 12 | wolfssl | no fix |
| Debian 13 | wolfssl | no fix |
| Ubuntu 16.04 LTS | wolfssl | no fix |
| Ubuntu 18.04 LTS | wolfssl | no fix |
| Ubuntu 20.04 LTS | wolfssl | no fix |
| Ubuntu 22.04 LTS | wolfssl | no fix |
| Ubuntu 24.04 LTS | wolfssl | no fix |
| Ubuntu 25.10 | wolfssl | no fix |
| Ubuntu 26.04 LTS | wolfssl | no fix |