CVE-2024-5991: critical vulnerability in wolfSSL
Buffer overread in domain name matching
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
A security check function in wolfSSL reads beyond the boundaries of a user-provided buffer when checking domain names, potentially exposing sensitive data from memory. This happens because the function assumes the input string ends with a null terminator, even when it doesn't.
CWE-125 out-of-bounds read in MatchDomainName() function: X509_check_host() accepts a pointer and length parameter but internally treats input as NULL-terminated without validation, causing buffer overread when processing non-terminated buffers. Remote attackers can trigger information disclosure by providing crafted certificate data to affected wolfSSL versions through 5.7.0.
In the same product, most dangerous first.