Vulnerability · Published Aug 27, 2024 · Assigned by wolfSSL

CVE-2024-5991Buffer overread in domain name matching

Critical 10.0

In plain English

A critical-severity out-of-bounds read in wolfSSL from wolfSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)10.0Critical
Exploit odds (30 days)0.6%top 53.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. Specifically, the function X509_check_host() takes in a pointer and length to check against, with no requirements that it be NULL terminated. If a caller was attempting to do a name check on a non-NULL terminated buffer, the code would read beyond the bounds of the input array until it found a NULL terminator.This issue affects wolfSSL: through 5.7.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20wolfssl5.7.2-r0ALPINE-CVE-2024-5991
Alpine:v3.21wolfssl5.7.2-r0ALPINE-CVE-2024-5991
Alpine:v3.22wolfssl5.7.2-r0ALPINE-CVE-2024-5991
Alpine:v3.23wolfssl5.7.2-r0ALPINE-CVE-2024-5991
Alpine:v3.24wolfssl5.7.2-r0ALPINE-CVE-2024-5991
Debian:12wolfsslno fix listedDEBIAN-CVE-2024-5991
Debian:13wolfssl5.7.2-0.1DEBIAN-CVE-2024-5991
Ubuntu:22.04:LTSwolfsslno fix listedUBUNTU-CVE-2024-5991
Ubuntu:24.04:LTSwolfsslno fix listedUBUNTU-CVE-2024-5991
Ubuntu:25.10wolfsslno fix listedUBUNTU-CVE-2024-5991
Ubuntu:26.04:LTSwolfsslno fix listedUBUNTU-CVE-2024-5991
Ubuntu:26.10wolfsslno fix listedUBUNTU-CVE-2024-5991

Affected products (as reported)

VendorProductVersions
wolfSSL wolfSSL 0 – through 5.7.0

Weakness: CWE-125 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References