CVE-2026-27145
Inefficient candidate hostname parsing in crypto/x509
6.5
MEDIUM
CVSS 3.1
EPSS 0.94%
描述
(*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.
如何修補 CVE-2026-27145
要修補 CVE-2026-27145,請將受影響套件升級到下列已修補版本。
- —升級至 1.25.11 或更新版本
- —升級至 1.25.11 或更新版本
CVE-2026-27145 正在被利用嗎?
低 — EPSS 為 0.9%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- from 0, < 1.25.11, >= 1.26.0-0, < 1.26.4
- from 0, < 1.25.11, >= 1.26.0-0, < 1.26.4
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H |