[Go Toolchain & Stdlib] CVE-2025-22873 安全漏洞预警
It was possible to improperly access the parent directory of an os.Root by opening a filename ending in "../". For example, Root.Open("../") would open the parent directory of the Root. This escape only permits opening the parent directory itself, not ancestors of the parent or files contained within the parent.(受影响范围:go (>= 1.24.0, < 1.24.3 → Fixed: 1.24.3))
Product
受影响版本范围
上游官方修复版本
go
>= 1.24.0, < 1.24.3
1.24.3
触发前置条件与不受影响自查
请核查当前运行版本是否落在受影响版本区间内,并结合官方公告确认相关模块/配置是否启用。
临时缓解措施 (Workaround)
建议优先升级至上游官方修复版本(Linux 发行版用户请同步检查 apt/dnf 安全更新源)。
Linux 发行版软件源(Backport)核查提示: 若生产环境通过 Ubuntu/Debian apt 或 RHEL/AlmaLinux dnf 安装软件(如 OpenSSL、Nginx、PHP),发行版维护者通常会将安全补丁向后移植到旧主版本号中。请同步核对对应发行版 USN/RHSA 安全源更新,无需盲目源码编译。