# CVE-2026-5772: MatchDomainName 1-Byte Stack Buffer Over-Read in Hostname Validation

- Severity: Low 2.1 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2026-04-09T21:50:04.038Z
- Modified: 2026-06-17T10:59:37.223Z
- Weaknesses: CWE-126
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## Description

A 1-byte stack buffer over-read was identified in the MatchDomainName function (src/internal.c) during wildcard hostname validation when the LEFT_MOST_WILDCARD_ONLY flag is active.  If a wildcard * exhausts the entire hostname string, the function reads one byte past the buffer without a bounds check, which could cause a crash.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: up to 5.9.0; before 5.9.1

## Every score

- wolfSSL: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/wolfSSL/wolfssl/pull/10119> (issue-tracking, patch)

## Sources

- CVE List: [CVE-2026-5772](https://www.cve.org/CVERecord?id=CVE-2026-5772), CVE Terms of Use, modified 2026-04-10
- NVD: [CVE-2026-5772](https://nvd.nist.gov/vuln/detail/CVE-2026-5772), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-5772 · Whole record: https://cve.day/CVE-2026-5772.json · Rebuilt by cve.day 2026-11-25T22:59:18.462Z
