CVE-2026-5772 PUBLISHED

MatchDomainName 1-Byte Stack Buffer Over-Read in Hostname Validation

Assigner: wolfSSL
Reserved: 08.04.2026 Published: 09.04.2026 Updated: 10.04.2026

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.

Metrics

CVSS 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
CVSS Score: 2.1

Product Status

Vendor wolfSSL
Product wolfSSL
Versions Default: unaffected
  • affected from 0 to 5.9.0 (incl.)

Credits

  • Zou Dikai finder

References

Problem Types

  • CWE-126 Buffer over-read CWE