CVE-2024-5991
wolfSSL vulnerability analysis and mitigation

Overview

CVE-2024-5991 is a buffer overflow vulnerability discovered in wolfSSL versions through 5.7.0. The vulnerability exists in the MatchDomainName() function where an input parameter 'str' is treated as a NULL-terminated string without proper validation. The issue was disclosed on August 27, 2024 (NVD).

Technical details

The vulnerability stems from the X509checkhost() function which accepts a pointer and length parameter but doesn't require NULL termination. When attempting to perform a name check on a non-NULL terminated buffer, the code continues reading beyond the bounds of the input array until it finds a NULL terminator. This represents an out-of-bounds read vulnerability (CWE-125). The vulnerability has received a CVSS v4.0 base score of 10.0 CRITICAL (NVD).

Impact

The vulnerability could lead to out-of-bounds memory reads, potentially exposing sensitive information from adjacent memory locations. The high CVSS score indicates significant potential impact on the confidentiality, integrity, and availability of affected systems (NVD).

Mitigation and workarounds

A fix has been implemented through a pull request that rewrites the pattern matching functionality to use explicit lengths instead of relying on NULL-terminated strings. Users should upgrade to versions after 5.7.0 once available (GitHub PR).

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-2025-11936MEDIUM6.3
  • wolfSSLwolfSSL
  • cpe:2.3:a:wolfssl:wolfssl
NoYesNov 21, 2025
CVE-2025-12889LOW2.3
  • wolfSSLwolfSSL
  • wolfssl
NoYesNov 22, 2025
CVE-2025-11934LOW2.1
  • wolfSSLwolfSSL
  • wolfssl
NoYesNov 21, 2025
CVE-2025-13912LOW1
  • wolfSSLwolfSSL
  • cpe:2.3:a:wolfssl:wolfssl
NoYesDec 11, 2025
CVE-2025-12888LOW1
  • wolfSSLwolfSSL
  • wolfssl
NoYesNov 21, 2025

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