GitHub 安全公告库 (GHSA)·· 4 小时前精选AI 评分58
gitoxide gix 0.88.0 至 0.89.0 因未过滤读取 protect_options() 导致 .git 路径保护可被禁用
gitoxide gix: untrusted .git/config disables filesystem .git-protection path checks via unfiltered protect_options()
AI 导读
GitHub 安全公告指出 gix crate 的 Cache::protect_options() 使用未过滤的 boolean() 读取 core.protectHFS、core.protectNTFS 和 gitoxide.core.protectWindows,在 Trust::Reduced 下仍会采纳不可信仓库本地 .git/config 的设置。
为什么值得看
公告给出受影响版本区间与修复版本,并附可复现的单元测试,便于 Rust 项目核对依赖是否受影响。
来源:GitHub 安全公告库 (GHSA) · github.com