
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-3229 is an integer overflow vulnerability in the wolfSSL cryptographic library affecting the static function wolfssl_add_to_chain, which causes heap corruption when certificate data is written out of bounds of an insufficiently sized certificate buffer. It affects all wolfSSL versions prior to 5.9.0. The vulnerability was published on March 19, 2026, and patched via a pull request merged on February 25, 2026. It carries a CVSS v3.1 base score of 5.5 (Medium) and a CVSS v4.0 base score of 1.2 (Low) (Feedly, GitHub PR).
The root cause is a 32-bit integer overflow (CWE-122: Heap-based Buffer Overflow) in the expression len + CERT_HEADER_SZ + certSz within wolfssl_add_to_chain in src/ssl_load.c, where all operands are word32 (unsigned 32-bit) types. When the sum wraps around, the resulting value is smaller than expected, causing a heap buffer to be allocated with insufficient size; subsequent certificate data writes then occur out of bounds. The vulnerable code path is reachable only through the APIs wolfSSL_CTX_add_extra_chain_cert, wolfSSL_CTX_add1_chain_cert, and wolfSSL_add0_chain_cert, which are enabled by build-time compatibility flags: enable-opensslall, enable-opensslextra, enable-lighty, enable-stunnel, enable-nginx, and enable-haproxy. Exploitation is strictly local and requires that the application context responsible for loading certificates is already compromised (GitHub PR, Feedly).
Successful exploitation results in heap corruption, which can cause application crashes or unpredictable behavior, leading to a denial-of-service condition. Because the vulnerability affects only availability (no confidentiality or integrity impact under CVSS v3.1), the primary risk is service disruption for applications using wolfSSL with the affected OpenSSL-compatibility build flags. The vulnerability is not remotely exploitable and requires local access with a compromised certificate-loading context, significantly limiting its practical impact (Feedly).
enable-opensslall, enable-opensslextra, enable-lighty, enable-stunnel, enable-nginx, or enable-haproxy) and must be able to influence the certificate data loaded by the application context.len) plus CERT_HEADER_SZ plus the new certificate size (certSz) causes a word32 integer overflow, resulting in a wrapped-around (very small) value.wolfSSL_CTX_add_extra_chain_cert, wolfSSL_CTX_add1_chain_cert, or wolfSSL_add0_chain_cert) through the compromised application context.wolfssl_add_to_chain or ssl_load.c.Upgrade wolfSSL to version 5.9.0 or later, which includes the fix that adds an overflow guard for the len + CERT_HEADER_SZ + certSz calculation in wolfssl_add_to_chain. The patch was merged on February 25, 2026 (GitHub PR). As a workaround for systems that cannot be immediately upgraded, restrict local access to systems running vulnerable wolfSSL-linked applications and avoid enabling the affected compatibility build flags (enable-opensslall, enable-opensslextra, enable-lighty, enable-stunnel, enable-nginx, enable-haproxy) if not required. FreeBSD users can track the fix via the wolfssl port update (FreeBSD Ports).
A Medium blog post by researcher @FufuFaf1 described discovering the integer overflow incidentally while building a certificate chain, providing informal community context around the bug's discoverability (Medium). Tenable published a Nessus detection plugin (ID 303241) for the vulnerability (Tenable). Overall community reaction has been muted given the low severity and non-remote exploitability of the issue.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."