vitess v22.0.4 版本更新介绍
发布日期: 2026-02-27
版本号: v22.0.4
Vitess v22.0.4 是一个安全重点版本,主要修复了两个近期报告的安全漏洞(CVE-2026-27965 和 CVE-2026-27969)及其他安全相关问题。核心变更是:从备份的
MANIFEST文件中读取外部解压缩器命令的功能,默认情况下已被禁用,这是一个为了修复潜在安全风险而引入的破坏性变更;用户如需此功能,需通过新增的--external-decompressor-use-manifest标志明确启用。此外,该版本还修复了可通过修改MANIFEST文件实施路径遍历攻击的安全问题,确保恢复文件时不会写入目标目录之外的任意路径。本次发布共包含了 37 个合并的 Pull Request。
更新内容 (中文)
发布 Vitess v22.0.4
摘要
这是一个以安全为重点的版本。其中包含对两个近期报告的CVE的修复以及一些其他与安全相关的修复。
外部解压工具默认情况下不再从备份清单文件中读取
这是针对以下安全公告及相关CVE的修复
- 公告: https://github.com/vitessio/vitess/security/advisories/GHSA-8g8j-r87h-p36x
- CVE: https://www.cve.org/CVERecord?id=CVE-2026-27965
默认情况下,恢复时不再使用备份 MANIFEST 文件中存储的外部解压工具命令。此前,在未提供 --external-decompressor 标志时,VTTablet 会回退到 MANIFEST 中指定的命令。这存在安全风险:拥有备份存储写入权限的攻击者可以修改 MANIFEST,在 Tablet 上执行任意命令。
请注意,这是一个破坏性变更。 从 v22.0.4 开始,除非您使用新的 --external-decompressor-use-manifest 标志明确选择启用,否则基于 MANIFEST 的解压工具将被忽略。如果您依赖此行为,请将该标志添加到您的 VTTablet 配置中,但需注意其安全影响。
详见 #19460。
在恢复时通过备份清单文件防止路径遍历
这是针对以下安全公告及相关CVE的修复
- 公告: https://github.com/vitessio/vitess/security/advisories/GHSA-r492-hjgh-c9gw
- CVE: https://www.cve.org/CVERecord?id=CVE-2026-27969
我们现在可以防止常见的 路径遍历攻击,拥有备份存储写入权限的人员可能利用此攻击通过修改 MANIFEST 来逃逸目标恢复目录,并将文件写入任意文件系统路径。
详见 #19470。
此版本的完整变更日志可在此处找到 此处。
此版本包含 37 个已合并的 Pull Request。
感谢所有贡献者:@app/vitess-bot, @mattlord, @vitess-bot
更新内容 (原始)
Release of Vitess v22.0.4
Summary
This is a security focused release. It contains fixes for two recently reported CVEs along with a number of other security related fixes.
External Decompressor No Longer Read from Backup MANIFEST by Default
This is a fix for the following security advisory and associated CVE
- Advisory: https://github.com/vitessio/vitess/security/advisories/GHSA-8g8j-r87h-p36x
- CVE: https://www.cve.org/CVERecord?id=CVE-2026-27965
The external decompressor command stored in a backup’s MANIFEST file is no longer used at restore time by default. Previously, when no --external-decompressor flag was provided, VTTablet would fall back to the command specified in the MANIFEST. This posed a security risk: an attacker with write access to backup storage could modify the MANIFEST to execute arbitrary commands on the tablet.
Please note that this is a breaking change. Starting in v22.0.4, the MANIFEST-based decompressor is ignored unless you explicitly opt in with the new --external-decompressor-use-manifest flag. If you rely on this behavior, add the flag to your VTTablet configuration, but be aware of the security implications.
See #19460 for details.
Prevent Path Traversals Via Backup MANIFEST Files On restore
This is a fix for the following security advisory and associated CVE
- Advisory: https://github.com/vitessio/vitess/security/advisories/GHSA-r492-hjgh-c9gw
- CVE: https://www.cve.org/CVERecord?id=CVE-2026-27969
We now prevent a common Path Traversal attack that someone with write access to backup storage could use to escape the target restore directory and write files to arbitrary filesystem paths via modifications to the MANIFEST.
See #19470 for details.
The entire changelog for this release can be found here.
The release includes 37 merged Pull Requests.
Thanks to all our contributors: @app/vitess-bot, @mattlord, @vitess-bot