ITADN

govulncheck: GO-2026-5037 — stdlib@v1.25.9

#2930Opengithub-actions[bot] 创建于 2026-06-19
govulncheck
## Inefficient candidate hostname parsing in crypto/x509 **Vulnerability:** [GO-2026-5037](https://pkg.go.dev/vuln/GO-2026-5037) **CVE:** CVE-2026-27145 **Affected modules:** stdlib@v1.25.9 **Fixed in:** v1.25.11 ### Recommended fix Upgrade Go from v1.25.9 to v1.25.11 in `go.mod` and rebuild. ### Verification After applying the fix, run `make govulncheck` and confirm the vulnerability no longer appears. ### Details (*x509.Certificate).VerifyHostname previously called matchHostnames in a loop over all DNS Subject Alternative Name (SAN) entries. This caused strings.Split(host, ".") to execute repeatedly on the same input hostname. With a large DNS SAN list, verification costs scaled quadratically based on the number of SAN entries multiplied by the hostname's label count. Because x509.Verify validates hostnames before building the certificate chain, this overhead occurred even for untrusted certificates. _Detected by govulncheck v1.3.0 on 2026-06-19_
0 条评论