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

Published Aug 27, 2024
·
Updated

Buffer overread in domain name matching

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
wolfSSL wolfssl<=5.7.0
Microsoft cbl2 mariadb 10.6.9-4<10.6.9-4
10.6.9-4
Microsoft azl3 mariadb 10.6.9-6<10.6.9-6
10.6.9-6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.6.9-4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.6.9-6
  3. Upgrade

    Upgrade wolfSSL to a version that resolves this vulnerability.

    Patch wolfSSL/wolfssl/pull/7604

Event History

Aug 27, 2024
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
RemedyDescriptionWeakness
Dec 7, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity

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