CVE-2026-3547
wolfSSL vulnerability analysis and mitigation

Overview

CVE-2026-3547 is an out-of-bounds read vulnerability in wolfSSL's ALPN (Application Layer Protocol Negotiation) parsing logic caused by incomplete validation. It affects wolfSSL versions 5.8.4 and earlier (all versions before 5.9.0) when built with ALPN support enabled (HAVE_ALPN / --enable-alpn). A crafted ALPN protocol list can trigger the out-of-bounds read, potentially crashing the affected process. The vulnerability was published on March 19, 2026, and carries a CVSS v3.1 base score of 7.5 (High) (Feedly, GitHub PR).

Technical details

The root cause is an incorrect loop exit condition in wolfSSL's ALPN parsing code (CWE-125: Out-of-bounds Read). Specifically, the loop variable s — which includes an offset — was incorrectly compared against size (the remaining buffer length after the offset) rather than length (the total buffer length), allowing the loop to read beyond the allocated buffer boundary (GitHub PR). An unauthenticated remote attacker can exploit this by sending a specially crafted ALPN protocol list during a TLS handshake. ALPN is disabled by default in wolfSSL but is automatically enabled when building with third-party compatibility flags: enable-apachehttpd, enable-bind, enable-curl, enable-haproxy, enable-hitch, enable-lighty, enable-jni, enable-nginx, and enable-quic (Feedly).

Impact

Successful exploitation causes an out-of-bounds memory read that leads to a process crash, resulting in a denial of service (DoS) for any application or service relying on wolfSSL with ALPN enabled. The impact is limited to availability — there is no confidentiality or integrity impact, as the vulnerability does not enable code execution or data exfiltration. Services such as NGINX, HAProxy, Apache HTTPD, curl-based applications, and QUIC implementations built against a vulnerable wolfSSL version are at risk of service disruption (Feedly).

Exploitation steps

  1. Reconnaissance: Identify services using wolfSSL with ALPN enabled — common targets include NGINX, HAProxy, Apache HTTPD, or curl-based services built with wolfSSL versions prior to 5.9.0.
  2. Craft malicious TLS ClientHello: Construct a TLS ClientHello message containing a malformed ALPN extension with a crafted protocol list designed to trigger the off-by-one loop boundary error during parsing.
  3. Send to target: Transmit the crafted TLS handshake packet to the target service's TLS port (e.g., 443). No authentication is required.
  4. Trigger out-of-bounds read: The wolfSSL ALPN parsing loop reads beyond the allocated buffer due to the incorrect comparison of s against size instead of length, causing a memory access violation.
  5. Achieve denial of service: The out-of-bounds read causes the process to crash, taking down the dependent service (GitHub PR, Feedly).

Indicators of compromise

  • Network: Unusual or malformed TLS ClientHello packets with oversized or malformed ALPN extension fields targeting services on TLS ports (e.g., 443, 8443).
  • Logs: Unexpected process crashes or segmentation faults in application logs for services using wolfSSL (e.g., NGINX, HAProxy, Apache HTTPD); crash dump files generated around the time of suspicious TLS connections.
  • Process: Sudden termination or restart of TLS-enabled services (NGINX worker processes, HAProxy, etc.) without administrative action, particularly following inbound TLS connection attempts.

Mitigation and workarounds

Upgrade wolfSSL to version 5.9.0 or later, which contains the fix for the incorrect loop exit condition (GitHub PR). If immediate patching is not feasible, disable ALPN support by removing the relevant build flags (--enable-alpn, HAVE_ALPN) and rebuilding, or by avoiding the third-party compatibility build options that implicitly enable ALPN (enable-apachehttpd, enable-bind, enable-curl, enable-haproxy, enable-hitch, enable-lighty, enable-jni, enable-nginx, enable-quic). Assess which ALPN-enabling integrations are strictly necessary in your environment and disable any that are not (Feedly).

Community reactions

The vulnerability received routine coverage across CVE aggregation platforms and security feeds shortly after disclosure on March 19, 2026, including mentions on Mastodon and Bluesky (Feedly). A technical write-up was published by Infinitsec covering the DoS impact and affected configurations. No significant vendor statements beyond the patch PR or notable researcher commentary have been identified.

Additional resources


SourceThis report was generated using AI

Related wolfSSL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-6330MEDIUM6.3
  • wolfSSL logowolfSSL
  • wolfssl
NoYesJun 25, 2026
CVE-2026-8720MEDIUM5.9
  • wolfSSL logowolfSSL
  • wolfssl
NoYesJun 25, 2026
CVE-2026-7511MEDIUM5.9
  • wolfSSL logowolfSSL
  • cpe:2.3:a:wolfssl:wolfssl
NoYesJun 25, 2026
CVE-2026-7532MEDIUM5.7
  • wolfSSL logowolfSSL
  • wolfssl
NoYesJun 25, 2026
CVE-2026-6331LOW2.1
  • wolfSSL logowolfSSL
  • cpe:2.3:a:wolfssl:wolfssl
NoYesJun 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management