# CVE-2026-113722: virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T19:48:29.183Z
- Modified: 2026-11-27T06:45:49.778Z
- Also known as: GHSA-c978-59m8-c77v, BIT-VIRTUALENV-2026-113722, PYSEC-2026-4381
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.14.9
- virtualenv (PyPI): before 21.14.9; from 20.0.0 before 21.14.9
- virtualenv virtualenv: from 20.0.0 before 21.14.9
- virtualenv (Bitnami): before 21.14.9

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-c978-59m8-c77v> (exploit, advisory, evidence, mitigation, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/pull/3417> (fix, issue-tracking, patch, web)
- <https://github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.14.9> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113722> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

- CVE List: [CVE-2026-113722](https://www.cve.org/CVERecord?id=CVE-2026-113722), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-c978-59m8-c77v](https://github.com/advisories/GHSA-c978-59m8-c77v), CC-BY-4.0, modified 2026-11-18
- NVD: [CVE-2026-113722](https://nvd.nist.gov/vuln/detail/CVE-2026-113722), Public domain, modified 2026-11-17
- PyPA Advisory Database: [PYSEC-2026-4381](https://osv.dev/vulnerability/PYSEC-2026-4381), CC-BY-4.0, modified 2026-11-18
- Bitnami Vulnerability Database: [BIT-VIRTUALENV-2026-113722](https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-113722), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-113722 · Whole record: https://cve.day/CVE-2026-113722.json · Rebuilt by cve.day 2026-11-27T07:07:40.675Z
