Skip to content
High 7.8

virtualenv の bash activate で任意のコマンドが実行される恐れ

CVE-2026-115586 First seen on SecPulse

Summary

virtualenv の 21.14.9 から 21.14.13 までの bash 用 activate スクリプトでは、--prompt の値がエスケープされずに PS1 へ設定される場合があり、細工された値によって、環境を有効化したユーザーの権限でコマンドが実行される恐れがあります。修正版の 21.14.13 に更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

virtualenv の 21.14.9 から 21.14.13 までの bash 用 activate スクリプトでは、--prompt の値がエスケープされずに PS1 へ設定される場合があり、細工された値によって、環境を有効化したユーザーの権限でコマンドが実行される恐れがあります。修正版の 21.14.13 に更新してください。

Affected packages

PackageAffected → Fixed
pypavirtualenv —
pipvirtualenv
< 21.14.13→ 21.14.13
PyPIvirtualenv
≥ 21.14.9, < 21.14.13→ 21.14.13
Bitnamivirtualenv
≥ 21.14.9, < 21.14.13→ 21.14.13

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

virtualenv is a tool for creating isolated virtual python environments. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details