What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: wolfSSL 5.9.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-5772 or the next vulnerability affects your stack