JLSEC-2026-1627: Medium severity julia/python_jll vulnerability
A vulnerability has been found in the CPython venv module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Python_jllto a version that resolves this vulnerability.Fixed in 3.10.16+0
Event History
Frequently Asked Questions
Who is exposed to command execution from this issue?
Users who activate a virtual environment created by an attacker are exposed. The issue requires an attacker-controlled virtual-environment path name and execution occurs when activation scripts are sourced, such as with "source venv/bin/activate".
Are virtual environments used by running their Python executable directly affected?
No. Virtual environments that are not activated before use, for example those invoked as "./venv/bin/python", are not affected according to the available information.
What can be done if patching is not immediately possible?
Do not activate virtual environments obtained from untrusted sources or created using attacker-controlled paths. Use the environment's Python executable directly instead of sourcing its activation script where practical.