Out-of-bounds Read in Wolfssl
CVE-2024-5991
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.006, 47.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Wolfssl — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (deepin-community/wolfssl, mtolley/wolfssl, wolfSSL/Arduino-wolfSSL, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/wolfSSL/wolfssl/pull/7604 (Broken Link)
- github.com/wolfSSL/wolfssl/pull/7604 (Issue Tracking, Patch)