Loading0%
SUBZER0
LIVE
Alerts

CVE-2026-113722

virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax

Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-11-20; check the references for anything newer.

  • Severity: High
  • CVSS 7.8
  • EPSS 0.26%
  • Public exploit
  • P2 · This week

Why P2: this week.

Description

## Summary A destination path supplied to virtualenv can be interpreted as shell syntax by a generated POSIX console launcher. The app-data seeder and pip delegate launcher generation to distlib but supply the interpreter path in a form that does not preserve it as literal data in the shell wrapper. ## Affected area POSIX console scripts generated by the app-data seeder or pip when the interpreter path requires a shell wrapper. Windows executable launchers are not affected by this path. ## Attacker-controlled input An attacker must influence the environment destination passed to virtualenv, and the user must subsequently run a generated launcher. The attacker does not need to modify an installed executable or control the user's app-data cache. ## Affected code The relevant 21.14.8 source is in [ScriptMakerCustom](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/seed/embed/via_app_data/pip_install/base.py). ## Mechanism The app-data seeder passes the environment's interpreter path through `enquote_executable()` to distlib's `ScriptMaker`. It adds double quotes for a path with a space but does not escape shell expansions inside those quotes. When the path has a space or the shebang exceeds 127 bytes, distlib emits a `#!/bin/sh` wrapper with a line shaped like `'''exec' "<path>" "$0" "$@"`. The shell expands `$(...)` and backticks in that path when the launcher is run. The same wrapper must also parse as Python, which expo…

Affected products

  • pip virtualenv < 21.14.9; first patched: 21.14.9

References

Browse more

PyPI (pip) packagesWeek 43, 2026 recap

Published 2026-10-20 · sources: GitHub Advisory Database