Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

RUSTSEC-2026-0400: Use-after-free of a dictionary after a one-shot call on a context with an open stream

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

Maintainer thường phản hồi trong vòng 4 ngày

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
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend, security

Hướng nghiên cứu

The report describes a use-after-free in zstd-safe one-shot calls when a context has an unfinished stream, but it does not identify files or tests in this repository. First trace where the client uses DCtx or CCtx and how it mixes one-shot and streaming operations. Done means establishing whether this project can hit the reported pattern and, if so, adding coverage and handling it safely.

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

Mô tả

Details
Package zstd-safe
Version 5.0.2+zstd.1.5.2
Warning unsound
URL https://github.com/gyscos/zstd-rs/commit/d34502a0ed07f80ab2aa4c65059578e0466f2467
Patched Versions >=8.2.0
Unaffected Versions <3.0.1

The one-shot DCtx and CCtx methods assumed the C library resets the
context, but it leaves an open stream as it is. When a stream was left
unfinished on a context, a one-shot call such as decompress_using_dict
could leave the context pointing at the dictionary borrowed for that call,
and the next streaming call resumed the stream against it after it was
freed: decompressed output then contained freed heap memory. On the
compression side, the stream resumed against the one-shot call's buffers.

This requires an application to use one context for both streaming and
one-shot calls without a reset in between. The flaw was corrected by
resetting the session after one-shot calls whenever a stream may be open.

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

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

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 bitcoindevkit/electrum_streaming_client

Tất cả issue của bitcoindevkit/electrum_streaming_client

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.