---
cve: "CVE-2024-5991"
severity: "CRITICAL"
cvss: 10.0
epss: "56%"
vendor: "wolfSSL"
kev: false
exploited: false
published: "2024-08-27 19:15:18"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-09-15T15:56:48+02:00"
---

# CVE-2024-5991

> 10.0 CRITICAL · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |

## Referenzen

- <https://https://github.com/wolfSSL/wolfssl/pull/7604>
- <https://github.com/wolfSSL/wolfssl/pull/7604>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-5991) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
