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

Activating a venv can execute shell commands from a directory name

Đang mở
#160,280 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 1 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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
security

Hướng nghiên cứu

Read the linked fix d48cc82ed25e26b02eb97c6263d95dcaa1e9111b and the virtualenv advisory GHSA-8rjx-v5ww-45pp to understand the related behavior. Reproduce the issue on Linux by creating and activating a virtual environment inside a directory with a crafted name. Done means activation no longer executes a command from that directory name; the issue does not identify a file or test to start from.

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

Mô tả

stdlib topic-venv type-bug
Bug report

An attacker can name a directory in an archive so that activating a freshly created virtual environment inside it runs a command as the developer or build account. A similar issue was fixed a few years ago (https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b) and virtualenv just had the equivalent bug fixed (https://github.com/pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45pp).

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs
  • gh-160283
Ngôn ngữ chính
Python
Star
77.7k
Fork
38.3k
Merge trung bình
14 giờ 29 phút
Pull request đã merge (30 ngày)
699

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 python/cpython

Tất cả issue của python/cpython

Issue tương tự

Thêm issue về Python

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.