CVE-2024-5991
published 2024-08-27CVE-2024-5991: In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. Specifically, the function…
PriorityP340high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
0.56%
42.9th percentile
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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | wolfssl | < wolfssl 5.7.2-0.1 (forky) | wolfssl 5.7.2-0.1 (forky) |
| msrc | azl3_mariadb_10.6.9-6_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_mariadb_10.6.9-4_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| wolfssl | wolfssl | <= 5.7.0 | — |
| wolfssl | wolfssl | >= 0 < 5.7.2-0.1 | 5.7.2-0.1 |
| wolfssl | wolfssl | >= 0 < 5.7.2-0.1 | 5.7.2-0.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv4.010.0CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv10.0CRITICAL
vendor_debian10.0CRITICAL
vendor_msrc7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2024-5991: In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked
osv·2024-08-27·CVSS 10.0
CVE-2024-5991 [CRITICAL] CVE-2024-5991: In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked
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.
GHSA
GHSA-jwjf-h4v6-qrpp: In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked
ghsa_unreviewed·2024-08-27
CVE-2024-5991 [CRITICAL] CWE-125 GHSA-jwjf-h4v6-qrpp: In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked
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.
Microsoft
Buffer overread in domain name matching
vendor_msrc·2024-08-13·CVSS 7.5
CVE-2024-5991 [CRITICAL] CWE-125 Buffer overread in domain name matching
Buffer overread in domain name matching
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
wolfSSL: wolfSSL
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.c
Debian
CVE-2024-5991: wolfssl - In function MatchDomainName(), input param str is treated as a NULL terminated s...
vendor_debian·2024·CVSS 10.0
CVE-2024-5991 [CRITICAL] CVE-2024-5991: wolfssl - In function MatchDomainName(), input param str is treated as a NULL terminated s...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 5.7.2-0.1)
sid: resolved (fixed in 5.7.2-0.1)
trixie: resolved (fixed in 5.7.2-0.1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-08-27
Published