{
  "id": "CVE-2026-0819",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-0819",
  "published_at": "2026-03-19T16:54:33.442Z",
  "title": "Stack buffer overflow in PKCS7 SignedData encoding with custom signed attributes",
  "vendor": "wolfSSL",
  "product": "wolfSSL",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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-\u003esignedAttribsCount) to EncodeAttributes() instead of the remaining available space in the fixed-size signedAttribs[7] array. When an application sets pkcs7-\u003esignedAttribsSz 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.",
  "cwe": "CWE-121",
  "cpes": [
    "cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 2.2,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "wolfSSL",
        "product": "wolfSSL",
        "ranges": [
          "\u003e= 5.5.0, \u003c 5.9.0"
        ],
        "fixed_in": [
          "5.9.0"
        ]
      }
    ],
    "solutions": [
      "Update to the patched version of wolfSSL. The fix adds proper bounds checking in wc_PKCS7_BuildSignedAttributes() to validate that the number of custom signed attributes does not exceed the available space in the fixed-size signedAttribs array, returning BUFFER_E if the limit is exceeded."
    ],
    "upgrade": [
      "Upgrade wolfSSL to 5.9.0 or later."
    ],
    "workarounds": [
      "Ensure that applications using wolfSSL PKCS7 signing functionality validate and limit the number of custom signed attributes (signedAttribsSz) to no more than MAX_SIGNED_ATTRIBS_SZ (default 7) minus the number of default signed attributes enabled. Do not allow untrusted input to control the signedAttribs array or its size."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/wolfSSL/wolfssl/pull/9630"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
