Raise minimum zip version to 9.0.5 for CVE-2026-115905 (GHSA-m665-v7pm-7grj)

未关闭 适合新手
#946 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust

调研方向

打开 Cargo.toml,找到 [dependencies] 和 [build-dependencies] 下的 zip 条目;检查两者的版本要求和现有功能设置。将每个最低版本提升到 9.0.5,然后检查 Cargo.lock。验证默认配置、include-zip 和 no-unsafe 配置,以及规则打包。完成标准是两个声明都排除受影响的版本,并且这些配置均使用安全的已解析 ZIP 版本构建成功。

由索引模型根据 Issue 内容生成。

描述

Summary

Please raise the minimum zip version to 9.0.5 in both the runtime and build dependency declarations to exclude versions affected by CVE-2026-115905 / GHSA-m665-v7pm-7grj.

Advisory: https://github.com/advisories/GHSA-m665-v7pm-7grj

  • Affected versions: <= 9.0.4
  • First patched version: 9.0.5

Current upstream state

Checked main at commit c6bba2f3a25a2a5f0a861af17f4772c0bef844ee:

  • Cargo.lock already selects zip 9.1.3, outside this advisory's affected range. A lockfile-only update is therefore not needed on current main.
  • Both [dependencies] and [build-dependencies] still declare zip with version = "9.0", which permits affected 9.0.x versions.

Sources:

Why the lockfile alone is not sufficient

Downstream applications consuming MathCAT as a dependency resolve against their own lockfiles; MathCAT's repository lockfile does not force their resolved ZIP version. An existing downstream lockfile can retain an affected version while still satisfying the current "9.0" requirement.

PR #861 upgraded ZIP to address earlier extraction advisories, but its lockfile selected 9.0.4, which is within this advisory's affected range. The newer main lockfile resolves that for current locked builds, while the declared minimum remains permissive.

Suggested change

For both ZIP declarations, raise the requirement to version = "9.0.5" (or a newer compatible minimum), preserving the existing default-features = false and features = ["deflate", "bzip2"] settings.

  • Raise the minimum in both runtime and build dependencies.
  • Keep all resolved ZIP versions outside the advisory's affected range and verify the full dependency graph.
  • Validate default, include-zip, and no-unsafe configurations and rules packaging.
  • Include the tightened requirement in an appropriate crates.io release; already published crate versions cannot be overwritten.

Scope

The advisory concerns parser differences between ZIP local-file and central-directory headers. This report requests dependency hardening against the published advisory; it does not assert a confirmed exploitable RCE path in MathCAT itself.

主要语言
Rust
星标
130
派生
96
平均合并
22 小时 13 分钟
30 天内合并 PR
87

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

daisy/MathCAT 的其他 Issue

查看 daisy/MathCAT 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。