Paper/Archive/CVE-2024-5991

CVE-2024-5991

wolfSSL wolfSSL — Buffer overread in domain name matching

Description · from the CVE record

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

ProductAffectedFixed inSource
wolfSSL≤ 5.7.0–CNA
wolfssl≤ 5.7.0–CISA-ADP

Scores by source

wolfSSL (CNA)10.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: total

References

refhttps://github.com/wolfSSL/wolfssl/pull/7604