SecurityContext

CVE-2026-0819: wolfSSL - Buffer Overflow

  • Cve: CVE-2026-0819
  • Name: wolfSSL - Buffer Overflow
  • 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.
  • Impact: Attackers can cause stack or heap memory corruption, potentially leading to application crash or arbitrary code execution.
  • Remediation: Update to the latest wolfSSL version with the fix for PKCS7 SignedData encoding.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirements: Application must allow untrusted input to control signedAttribs array size during PKCS7 encoding.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.00115
  • Epss percentile: 0.01566
  • Assignee: [email protected]
  • Published at: 2026-03-19T17:16:21Z
  • Age in days: 250
  • Modified at: 2026-06-17T10:11:26Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-0819
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-121Stack-based Buffer Overflow
CWE-787Out-of-bounds Write

References

UrlSourceTags
https://github.com/wolfSSL/wolfssl/pull/9630nvdIssue Tracking, Patch

Products

ProductAffectedPlatform boundSourcesUrl
wolfssl:wolfssl>= 5.5.0, < 5.9.0nonvd/v1/products/wolfssl/wolfssl

Projects

RepositoryLink kindsIndexedUrl
wolfSSL/wolfsslpullyes/v1/repositories/wolfSSL/wolfssl

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts