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.
{
"sources": [
{
"imported": "2026-07-17T22:25:54.729Z",
"id": "CVE-2026-0819",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-0819",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0819",
"modified": "2026-06-17T10:11:26.320Z",
"database_specific": {
"status": "Analyzed"
},
"published": "2026-03-19T17:16:21.657Z"
},
{
"id": "GHSA-3cr6-hpf3-2hmg",
"url": "https://api.github.com/advisories/GHSA-3cr6-hpf3-2hmg",
"html_url": "https://github.com/advisories/GHSA-3cr6-hpf3-2hmg",
"modified": "2026-04-29T21:32:22Z",
"imported": "2026-07-17T22:25:54.865Z",
"published": "2026-03-19T18:31:18Z"
},
{
"id": "EUVD-2026-13131",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-13131",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-13131",
"modified": "2026-03-19T17:19:37Z",
"imported": "2026-07-17T22:26:02.740Z",
"published": "2026-03-19T16:54:33Z"
}
],
"license": "CC-BY-4.0"
}