CVE-2024-5991: Buffer overread in domain name matching

Published Aug 27, 2024
·
Updated

In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. Specifically, the function X509checkhost() 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 Software

1 affected component
wolfSSL wolfssl<=5.7.0

Remediation

Information

Fixed in the following github pull request  https://https://github.com/wolfSSL/wolfssl/pull/7604

Event History

Aug 27, 2024
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-5991?

The severity of CVE-2024-5991 is currently classified as high due to the potential for denial of service or security bypass.

2

How do I fix CVE-2024-5991?

To fix CVE-2024-5991, upgrade to a version of wolfSSL later than 5.7.0 that addresses this vulnerability.

3

What software is affected by CVE-2024-5991?

CVE-2024-5991 affects all versions of wolfSSL up to and including 5.7.0.

4

What vulnerability does CVE-2024-5991 describe?

CVE-2024-5991 describes a vulnerability in the MatchDomainName() function where unchecked user input is treated as a NULL terminated string.

5

Can CVE-2024-5991 lead to remote exploitation?

Yes, CVE-2024-5991 has the potential to be exploited remotely due to improper handling of user input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203