CVE-2026-0819

published 19 Mar 2026 · updated 25 Mar 2026

Stack buffer overflow in PKCS7 SignedData encoding with custom signed attributes

2.2LowCVSS 2.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 5.9.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
wolfSSL>=5.5.0 <5.9.05.9.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-0819 severity on Zeptric[![CVE-2026-0819](https://zeptric.io/badge/cve/CVE-2026-0819.svg)](https://zeptric.io/cve/CVE-2026-0819)