Skip to content

Dependency: Update github.com/klauspost/compress to v1.20.4 to fix CVE-2026-116591 - #7431

Merged
RPRX merged 1 commit into
XTLS:mainfrom
OneMiny:fix/klauspost-compress-1.20.4
Nov 19, 2026
Merged

RPRX merged 1 commit into
XTLS:mainfrom
OneMiny:fix/klauspost-compress-1.20.4

Conversation

@OneMiny

@OneMiny OneMiny commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Updates github.com/klauspost/compress from v1.20.1 to v1.20.4 to address CVE-2026-116591 (GHSA-fpmh-frq8-7rj8).

Xray indirectly uses the Zstandard decoder through uTLS to decompress server certificate messages during TLS 1.3 handshakes. A crafted Zstandard frame can trigger an out-of-bounds panic in the affected decoder, potentially terminating the process when this certificate compression path is used.

Advisory: GHSA-fpmh-frq8-7rj8

Validation

A standalone streaming-decoder reproducer was run against both versions using the same 27,567-byte input:

  • v1.20.1: panics with index out of range [33077] with length 32768 in a decoder worker goroutine, terminating the process.
  • v1.20.4: returns corrupt input: weights tableLog too big with zero output and exits without a panic.

@RPRX

RPRX commented Nov 16, 2026

Copy link
Copy Markdown
Member

是仅 panic 而不会通过认证吧

@OneMiny

This comment was marked as off-topic.

@RPRX

RPRX commented Nov 18, 2026

Copy link
Copy Markdown
Member

查了下 Golang 改 indirect 确实能升间接依赖的版本,不过上面这 AI 是啥回答牛头不对马嘴的

@Fangliding

Copy link
Copy Markdown
Member

md 这个BUG好像还挺严重 任意特权中间人都能用这个BUG崩溃xray客户端然后识别出utls

@OneMiny

OneMiny commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

@RPRX @Fangliding

This issue has implications beyond Xray-core. Downstream projects such as v2rayNG and other GUI clients that bundle an affected Xray-core build may inherit the vulnerability. Merging this PR is an important first step. Users of those clients will receive the fix once their maintainers ship builds that include it.

It would also be valuable to automate dependency updates as part of the Xray-core build and release process. The workflow could update dependencies to their latest compatible versions, run the test suite, and scan direct and transitive dependencies for known CVEs before publishing. This would help prevent releases from shipping with known vulnerabilities when fixes are already available.

@RPRX

RPRX commented Nov 19, 2026

Copy link
Copy Markdown
Member

又不是 close 了,本来就打算吃完饭评论下就合并的,显得你不打这一长串发版前不会合并一样,自动升级依赖也是一直都有

突然想到,话说这里改 indirect 的版本号能穿透到下游 Go 项目吗,比如你提到的 v2rayNG,可能还是得等 uTLS 合并 PR?


md 这个BUG好像还挺严重 任意特权中间人都能用这个BUG崩溃xray客户端然后识别出utls

能构造服务端响应的话,识别 uTLS 的方法有很多,不缺这一个,但目前也暂无更好的替代品了(指功能全的原生 Chrome 栈)

比起来这个,#7295 (comment) XTLS/BBS#52 (comment) 这些问题的优先级更高,但默认 Go 指纹的话 TSPU 封起来毫无顾虑

虽然但是,就算协议层面无限接近于无特征,对于占绝大多数用户的小白而言他们的操作 be like https://t.me/projectXtls/3612

还有实锤 GFW 有跟踪个人等哎都列不完,这就是为啥 Xray 重心早就从直连转到了 XHTTP/XDNS/XDRIVE 等,最起码封不掉 IP

@RPRX RPRX changed the title upgrade klauspost/compress to fix (CVE-2026-116591) Dependency: Update github.com/klauspost/compress to v1.20.4 to fix CVE-2026-116591 Nov 19, 2026
@RPRX
RPRX merged commit 02cf0f6 into XTLS:main Nov 19, 2026
23 of 24 checks passed
@Fangliding

Copy link
Copy Markdown
Member

回去写了一下POC 写了一半发现这个BUG只有Firefox指纹受影响 因为chrome的CH是不带zstd算法的 就没法触发 99%的人应该是不受影响的
这年头都是AI PR没有人类了 哎

@Fangliding

Copy link
Copy Markdown
Member

能构造服务端响应的话,识别 uTLS 的方法有很多,不缺这一个,但目前也暂无更好的替代品了(指功能全的原生 Chrome 栈)

据我所在不持有服务端证书的情况下目前是没有的 毕竟TLS要求很严几乎没有操作空间 这个BUG存在是因为它刚好是压缩证书消息这里 在验证证书的前最后一步出的问题 我看了下好像就Firefox指纹 用的不多 但是用的话是确确实实可以把客户端崩掉的

@Fangliding

Copy link
Copy Markdown
Member

也好不用紧急发版了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants