Go Security Updates Fix DoS Flaws in MIME Parsing and X.509 Verification
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Jun 2, 2026

The Go project released Go 1.26.4 and Go 1.25.11 with three security fixes, including two denial-of-service issues that could be triggered by crafted input. One flaw, tracked as CVE-2026-42504, affects mime.WordDecoder.DecodeHeader, where malicious MIME headers containing many invalid encoded words can drive quadratic or near-quadratic parsing behavior and cause excessive CPU consumption. Public issue details describe an attack pattern using repeated malformed encoded-word prefixes that force repeated parsing work before a terminating ?= sequence.
The same releases also fix CVE-2026-27145, a quadratic-performance problem in crypto/x509 hostname verification when certificates contain large DNS SAN lists, and CVE-2026-42507, where net/textproto functions could return unescaped attacker-controlled input in error messages, creating a risk of misleading log entries or terminal control-sequence injection. The Go team credited p4p3r and Jakub Ciolek for reporting two of the issues and directed users to upgrade to the patched versions.


