Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Activating a venv can execute shell commands from a directory name

オープン
#160,280 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
77.7k
フォーク
38.3k
平均マージ
14時間 29分
マージ済み PR(30日)
699

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。