Description
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.
Published: 2026-10-20
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: Command Execution via Prompt Injection
Action: Immediate Patch
AI Analysis

Impact

virtualenv is a tool that creates isolated Python environments. Prior to version 21.14.9, the text supplied by the caller for the Bash prompt can be interpreted as executable syntax when the environment is activated. This means that if an attacker can influence the prompt value, they may cause arbitrary shell commands to run during activation, leading to command‑execution risk.

Affected Systems

Affected products are the pypa virtualenv package itself. All releases older than 21.14.9 are vulnerable; the fix is deployed in version 21.14.9 and later.

Risk and Exploitability

The CVSS score of 7.1 classifies the issue as high severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The required conditions are that the attacker be able to supply a crafted prompt to virtualenv and that a user activates that environment. Therefore the attack vector is local or requires social engineering; remote exploitation is not demonstrated.

Generated by OpenCVE AI on October 20, 2026 at 22:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade virtualenv to version 21.14.9 or later.
  • Ensure that any prompt text supplied to virtualenv originates from a trusted source and is not influenced by external actors.
  • If an upgrade is not possible immediately, consider disabling the Bash activation prompt or sanitizing the prompt value before activation.
  • Verify that the activation script contains no malicious code before running it.

Generated by OpenCVE AI on October 20, 2026 at 22:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important


Tue, 20 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Description virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.
Title virtualenv: Bash prompt values can change meaning under older compatibility modes
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T19:51:06.340Z

Reserved: 2026-10-20T16:03:14.863Z

Link: CVE-2026-113723

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-20T20:17:18.967

Modified: 2026-10-20T20:17:18.967

Link: CVE-2026-113723

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-20T19:51:06Z

Links: CVE-2026-113723 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T22:30:18Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')