Vulnerability · Published Mar 19, 2026 · Assigned by wolfSSL

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

Low 2.2

In plain English

A low-severity stack buffer overflow in wolfSSL from wolfSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.2Low
Exploit odds (30 days)0.1%top 98.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23wolfssl5.9.1-r0ALPINE-CVE-2026-0819
Alpine:v3.24wolfssl5.9.0-r0ALPINE-CVE-2026-0819
Debian:12wolfsslno fix listedDEBIAN-CVE-2026-0819
Debian:13wolfsslno fix listedDEBIAN-CVE-2026-0819
Ubuntu:22.04:LTSwolfsslno fix listedUBUNTU-CVE-2026-0819
Ubuntu:24.04:LTSwolfsslno fix listedUBUNTU-CVE-2026-0819
Ubuntu:25.10wolfsslno fix listedUBUNTU-CVE-2026-0819
Ubuntu:26.04:LTSwolfsslno fix listedUBUNTU-CVE-2026-0819

Affected products (as reported)

VendorProductVersions
wolfSSL wolfSSL 5.5.0 – before 5.9.0

Weakness: CWE-121, CWE-787 · Vector: 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

References