In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. Specifically, the function X509checkhost() 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.
{
"sources": [
{
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5991",
"modified": "2026-06-17T08:17:03.577Z",
"published": "2024-08-27T19:15:18.080Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2024-5991",
"imported": "2026-07-17T22:24:51.693Z",
"id": "CVE-2024-5991",
"database_specific": {
"status": "Analyzed"
}
},
{
"url": "https://api.github.com/advisories/GHSA-jwjf-h4v6-qrpp",
"published": "2024-08-27T21:31:14Z",
"html_url": "https://github.com/advisories/GHSA-jwjf-h4v6-qrpp",
"imported": "2026-07-17T22:24:51.860Z",
"id": "GHSA-jwjf-h4v6-qrpp",
"modified": "2024-09-07T00:31:29Z"
},
{
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2024-47107",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-47107",
"id": "EUVD-2024-47107",
"imported": "2026-07-17T22:25:01.699Z",
"published": "2024-08-27T18:33:27Z",
"modified": "2024-08-27T20:06:24Z"
}
],
"license": "CC-BY-4.0"
}