Skip to content
High 7.8

virtualenvでコマンドを実行される脆弱性 悪用の確認は未報告

CVE-2026-113722 First seen on SecPulse

Summary

virtualenvが生成するPOSIX用のコンソールスクリプトに不完全なクォートの処理があり、ユーザーがランチャーを実行した際に任意のコマンドが実行されるおそれがあります。影響を受けるのは21.14.9より前のバージョンで、修正版は21.14.9です。既存のランチャーは修正後も再生成が必要で、pipの更新で再び脆弱なものが作られる場合があるため注意してください。

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が生成するPOSIX用のコンソールスクリプトに不完全なクォートの処理があり、ユーザーがランチャーを実行した際に任意のコマンドが実行されるおそれがあります。影響を受けるのは21.14.9より前のバージョンで、修正版は21.14.9です。既存のランチャーは修正後も再生成が必要で、pipの更新で再び脆弱なものが作られる場合があるため注意してください。

Affected packages

PackageAffected → Fixed
pypavirtualenv —
pipvirtualenv
< 21.14.9→ 21.14.9
PyPIvirtualenv
< 21.14.9→ 21.14.9
Bitnamivirtualenv
< 21.14.9→ 21.14.9

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. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX console scripts. When the path contains a space or produces a shebang longer than 127 bytes, distlib emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks. An attacker who influences the environment destination can therefore execute commands with the user's privileges when the user later runs a generated launcher; environment creation and activation do not trigger the command. Existing launchers are not repaired by upgrading virtualenv alone and must be regenerated, while a later independent pip installation or upgrade can reintroduce an affected launcher because pip's vendored distlib is unchanged. The virtualenv fix is released in version 21.14.9.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

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