CVE-2026-5772
wolfSSL vulnerability analysis and mitigation

Overview

CVE-2026-5772 is a 1-byte stack buffer over-read vulnerability in the MatchDomainName function (src/internal.c) of wolfSSL, triggered during wildcard hostname validation when the LEFT_MOST_WILDCARD_ONLY flag is active. If a wildcard * character exhausts the entire hostname string, the function reads one byte past the end of the buffer without a bounds check, potentially causing a crash. All wolfSSL versions up to and including 5.9.0 are affected; the fix is included in version 5.9.2. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 2.1 (Low) (GitHub Advisory, wolfSSL PR).

Technical details

The root cause is classified as CWE-126 (Buffer Over-read): the MatchDomainName function's main loop does not verify that the remaining string length (strLen) is greater than zero before dereferencing the next character when a wildcard pattern has consumed the entire input hostname. This missing bounds check allows a one-byte read past the stack buffer boundary. The fix, merged April 3, 2026, adds a guard condition to exit the loop when either the pattern or string length reaches zero, preventing the out-of-bounds read (wolfSSL PR). The vulnerability was reported by Zou Dikai and tracked internally as zd#21512 (wolfSSL PR).

Impact

Successful exploitation results in a denial-of-service condition: the application using wolfSSL for TLS hostname validation may crash due to the invalid memory read. There is no impact on confidentiality or integrity, as the over-read is limited to a single byte and does not expose sensitive data or allow memory writes. The vulnerability affects any application that uses wolfSSL's wildcard hostname matching with the LEFT_MOST_WILDCARD_ONLY flag enabled during TLS certificate validation (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.042–0.046%, placing it in the 15th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires specific preconditions: the attacker must be able to influence the hostname or certificate subject being validated, and the target application must have the LEFT_MOST_WILDCARD_ONLY flag active (GitHub Advisory).

Mitigation and workarounds

Upgrade wolfSSL to version 5.9.2 or later, which includes the fix merged on April 3, 2026 (wolfSSL PR). For embedded or downstream distributions (e.g., OpenEmbedded/meta-openembedded), backport patches referencing PR #10119 are available as of May 2026. As a configuration-level workaround, applications can avoid enabling the LEFT_MOST_WILDCARD_ONLY flag in hostname validation until the upgrade is applied. Additionally, implement input validation to ensure hostname strings passed to wolfSSL are properly formed before processing.

Community reactions

The vulnerability was disclosed via the oss-security mailing list in Q2 2026 and received routine coverage from vulnerability tracking services including Tenable (Nessus plugin 305900) and VulDB (oss-sec). No significant vendor statements beyond the wolfSSL patch or notable researcher commentary have been identified. Community reaction has been minimal, consistent with the low severity and limited exploitability of the issue.

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