CVE-2024-5991
published critical CVSS 4.0 · 10.0Buffer overread in domain name matching
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wolfSSL | — | wolfSSL0 through 5.7.0 · Other versions: unaffected | Affected | Not stated | wolfSSL |
| wolfssl | — | wolfssl0 through 5.7.0 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
| Alpine Linux | edge | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
| Alpine Linux | v3.20 | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
| Alpine Linux | v3.21 | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
| Alpine Linux | v3.22 | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
| Alpine Linux | v3.23 | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
| Alpine Linux | v3.24 | wolfssl | Fixed | 5.7.2-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- wolfSSL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wolfSSL | wolfSSL | 0 through 5.7.0 (affected · release bundle)Default: unaffected | wolfSSL · cna |
| wolfssl | wolfssl | 0 through 5.7.0 (affected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds Read
References
1Provider assertions
2wolfSSL · cna
Buffer overread in domain name matching
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6256a819644efa7163dce2e8f6b672d8a7936b178a43ddb9e026dc7c34bda34f
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record