CVE-2024-5991 json
Buffer overread in domain name matching
published 2024-08-27 2 y ago modified 2026-07-25 3 mo ago also EUVD-2024-47107 , GHSA-jwjf-h4v6-qrpp , JLSEC-2026-685
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia wolfSSL_jll 5.7.2+0
- wolfssl wolfssl 5.7.2
- wolfssl Debian 13 5.7.2-0.1
debian advisories DEBIAN-CVE-2024-5991
- wolfssl Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 5.7.2-r0
alpine advisories ALPINE-CVE-2024-5991
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- mariadb CBL-Mariner 2.0 10.6.9-4
- mariadb Azure Linux 3.0 10.6.9-6
azure linux advisories AZL-48342AZL-48368
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- https//github.com/wolfSSL/wolfssl/pull/7604 pull request
- github.com/wolfSSL/wolfssl#7604 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 10.0 | 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 |
| CNA | 4.0 | 10.0 | 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/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 |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | wolfSSL_jll | <5.7.2+0 |
5.7.2+0 |
Affected products
- wolfSSL wolfSSL
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
https
//github.com/wolfSSL/wolfssl/pull/7604
broken-link, web
-
github.com
/wolfSSL/wolfssl/pull/7604
issue-tracking, patch, web
-
github.com
/advisories/GHSA-jwjf-h4v6-qrpp
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-5991
web
Sources
- CVE List CVE-2024-5991
- NVD CVE-2024-5991
- OSV JLSEC-2026-685
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.