# Go 紧急修复：拦截含不受信 SPKI 的证书链

Original title: Go will reject certificate chains containing eight distrusted SPKIs

> Hacker News story 50160877 · language: zh · submitted 2026-10-20
> Web version: https://zeli.app/zh/story/50160877
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 137 · by [mendym](<https://news.ycombinator.com/user?id=mendym>) · 💬 79
[original](<https://github.com/golang/go/issues/82345>) · [HN discussion](<https://news.ycombinator.com/item?id=50160877>)

## Summary

Go 团队刚刚发布了一个紧急安全更新，旨在解决特定的证书颁发机构（Certificate Authority）带来的安全隐患。此次修复针对 CVE-2026-111943，核心措施是在 crypto/x509 包中引入新的验证逻辑，自动过滤并拒绝包含特定不受信中间证书的信任链。官方强烈建议所有开发者立即升级 Go 版本，以免受到潜在攻击的影响。这一改动直接影响了 Go 1.26、1.27 及未来的 Go1.28 版本，体现了 Go 社区对基础设施安全的高度重视。

## Key quote

> Verify 现在将过滤掉包含这些中间证书的链，防止它们被返回给调用者。

## HN discussion (79 comments)

### [agwa](<https://news.ycombinator.com/item?id=50162111>)

> https://gist.github.com/AGWA/5a78186e0f4a7d537b8891a7b46f945... 是截至目前被阻止的 CA 在 Certificate Transparency 中颁发的证书列表。这些看起来是无恶意的测试证书，第一条证书中的 DNS 名称表明了谁很可能发现了这个问题。
>
> 令人震惊且前所未有的是，昨天，两个 Certificate Transparency 日志实现被更新以阻止记录由这些 CA 颁发的证书。这很可能意味着私钥已完全泄露，CT 日志的阻止措施是为了防止日志被伪造证书刷屏。然而，这也意味着在野外发现的伪造证书将无处可记。（这些证书在强制 CT 的客户端中无法验证，因为它们不在 CT 日志中，但可能被用来攻击不强制 CT 的客户端。）

### [ericbarrett](<https://news.ycombinator.com/item?id=50161123>)

> 更多信息（以及从这些 Bugzilla 报告链接的讨论）：
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=2083709
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=2018979

### [wnoise](<https://news.ycombinator.com/item?id=50161185>)

> 很遗憾，你无法让证书由多个 CA 签名。
>
> （格式似乎允许这样做，但没有任何东西支持它，而且实际上 CA 要求能够修改某些字段，然后进行签名。）

### [accountrequired](<https://news.ycombinator.com/item?id=50161521>)

> “先生，这里是 Wendy's”时刻：我的编译器以为它是一个根证书颁发机构。

### [mendym](<https://news.ycombinator.com/item?id=50160878>)

> 这似乎是证书列表
>
> https://gist.github.com/mendymm/ff7a9fd00339260b4d2dbdcb0f48...
>
> 数据来自 https://www.ccadb.org/resources

---

## Cite

- Page: https://zeli.app/zh/story/50160877
- Date: 2026-10-20
- Source: github.com (https://github.com/golang/go/issues/82345)
- Hacker News: https://news.ycombinator.com/item?id=50160877

## Other languages

- en: https://zeli.app/story/50160877 · markdown: https://zeli.app/story/50160877.md
- ja: https://zeli.app/ja/story/50160877 · markdown: https://zeli.app/ja/story/50160877.md
- ko: https://zeli.app/ko/story/50160877 · markdown: https://zeli.app/ko/story/50160877.md
- de: https://zeli.app/de/story/50160877 · markdown: https://zeli.app/de/story/50160877.md
- es: https://zeli.app/es/story/50160877 · markdown: https://zeli.app/es/story/50160877.md
- ru: https://zeli.app/ru/story/50160877 · markdown: https://zeli.app/ru/story/50160877.md
