RUSTSEC-2026-0368: zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

Đang mở
#472 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
kubernetes, rust
Lĩnh vực
cli, security

Hướng nghiên cứu

Read the advisory and inspect the Rust dependency declarations plus every place ZipArchive::extract is used, especially paths handling untrusted archives. No files or tests are named in the issue. The work is complete when extraction no longer permits attacker-controlled symbolic links to resolve outside the destination, with regression coverage demonstrating the restriction.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

zip: ZipArchive::extract creates symbolic links whose attacker-controlled targets are outside the destination directory

Details
Package zip
Version 3.0.0
Date 2026-10-09
Patched versions >=9.0.0

In zip 9.0.0-pre2, ZipArchive::extract creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

See advisory page for additional details.

Ngôn ngữ chính
Rust
Star
11
Fork
5
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stackabletech/stackablectl

Tất cả issue của stackabletech/stackablectl

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.