Vulnerability · Published Apr 9, 2026 · Assigned by wolfSSL
CVE-2026-5772MatchDomainName 1-Byte Stack Buffer Over-Read in Hostname Validation
Low 2.1
In plain English
A low-severity security flaw in wolfSSL from wolfSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | wolfssl | 5.9.1-r0 | ALPINE-CVE-2026-5772 |
| Alpine:v3.24 | wolfssl | 5.9.1-r0 | ALPINE-CVE-2026-5772 |
| Debian:12 | wolfssl | no fix listed | DEBIAN-CVE-2026-5772 |
| Debian:13 | wolfssl | no fix listed | DEBIAN-CVE-2026-5772 |
| Ubuntu:22.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-5772 |
| Ubuntu:24.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-5772 |
| Ubuntu:25.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-5772 |
| Ubuntu:26.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-5772 |
| Ubuntu:26.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-5772 |
Affected products (as reported)
Weakness: CWE-126 · Vector: 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