Skip to content

Remove the zip 8 advisory exceptions once vendored ruff moves to zip 9 #378

Open

Description

@JuroOravec

deny.toml accepts three RustSec advisories for zip 8.6.0: RUSTSEC-2026-0367, RUSTSEC-2026-0368 and RUSTSEC-2026-0369. All three are about ZipArchive::extract and ZipStreamReader::extract (SUID bits, symlink targets and permissions applied through symlinks). zip reaches Citry only through the vendored ruff formatter (ruff_db), which pins zip 8, and Citry formats source text and never extracts an archive, so none of the affected functions runs. The fixes are in zip 9.0, a major version that ruff has to adopt first. When the vendored ruff (third_party/rust/ruff) moves to zip 9, run cargo update -p zip, delete the three entries from deny.toml, and check that cargo deny check advisories passes.

Activity

  1. added
    next-sprint
    on Oct 28, 2026
  2. JuroOravec commented on Nov 2, 2026

    @JuroOravec
    MemberAuthor

    RUSTSEC-2026-0429 (ZipArchive::extract aborts on a symlink entry with a large declared size) is another zip 8 advisory with the same cause. #582 adds it to the deny.toml ignore list next to RUSTSEC-2026-0367/0368/0369, so this issue now covers all four: remove them together once the ruff submodule pin moves to zip 9. Citry still never calls extract: ruff_db uses zip only for its read-only VendoredFileSystem (by_name/by_index_raw), and none of Citry's crates or ruff_python_formatter constructs one.

  3. JuroOravec commented on Nov 2, 2026

    @JuroOravec
    MemberAuthor

    Update: remove the four entries when the ruff submodule pin moves to a ruff release that uses zip 9. Ruff main has it since astral-sh/ruff#29808, but no ruff release includes it yet; ruff 0.17.3 still uses zip 8, so moving the pin to 0.17.3 does not close this issue. The deny.toml comment in #582 says the same.

  4. JuroOravec commented on Nov 2, 2026

    @JuroOravec
    MemberAuthor

    The ruff pin moved to 0.17.3 in #584. That release still requires zip 8, so the deny.toml exceptions stay, including RUSTSEC-2026-0429 (added in #582). Ruff's main uses zip 9 since astral-sh/ruff#29808, so the next ruff release that includes it lets these entries go.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions