Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Wolfssl | Wolfssl | <= 5.7.0 |
Related Weaknesses (CWE)
References
- https://https://github.com/wolfSSL/wolfssl/pull/7604Broken Link
- https://github.com/wolfSSL/wolfssl/pull/7604Issue TrackingPatch
FAQ
What is CVE-2024-5991?
CVE-2024-5991 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 len...
How severe is CVE-2024-5991?
CVE-2024-5991 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-5991?
Check the references section above for vendor advisories and patch information. Affected products include: Wolfssl Wolfssl.