# CVE-2024-5991

## Summary

- **CVE ID:** CVE-2024-5991
- **Severity:** CRITICAL
- **CVSS Score:** 10 (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)
- **CWE:** CWE-125
- **Published:** Aug 27, 2024
- **Last Modified:** Mar 13, 2026

## Description

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 Products

- wolfSSL — wolfSSL (0)

## References

- [CNA](https://https://github.com/wolfSSL/wolfssl/pull/7604)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.56%
- **EPSS Percentile:** 44.8

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-10._