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.
References
Link | Resource |
---|---|
https://https://github.com/wolfSSL/wolfssl/pull/7604 | Broken Link |
https://github.com/wolfSSL/wolfssl/pull/7604 | Issue Tracking Patch |
Configurations
History
No history.
Information
Published : 2024-08-27 19:15
Updated : 2024-09-06 22:51
NVD link : CVE-2024-5991
Mitre link : CVE-2024-5991
CVE.ORG link : CVE-2024-5991
JSON object : View
Products Affected
wolfssl
- wolfssl
CWE
CWE-125
Out-of-bounds Read