CVE-2024-5991
Buffer overread in domain name matching
Reported by wolfssl · Published August 27, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| wolfssl | Alpine | 5.7.2-r0 |
| wolfssl | wolfssl | 5.7.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| wolfSSL | wolfSSL | 0 |
| wolfssl | wolfssl | 0 |
| alpine | wolfssl | 0 |
| wolfSSL | wolfSSL | 0 |
Timeline
- Aug 27, 2024 CVE Published
- Aug 27, 2024 CVE Updated
- Aug 28, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (5 in total, the first dated here)
- Apr 1, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-5991
vulnetix vdb fixes CVE-2024-5991
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-5991/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart