AI Science Tracker

Bash prompt values can change meaning under older compatibility modes

virtualenv (Python virtual environment creation and seeding tool) · AI involvement attributed to Anthropic OSS Scanner (specific model/version not identified in the item-level advisory)

Finding and attribution

Caller-supplied prompt text can be reinterpreted as shell syntax in generated POSIX activation prompts under bash compatibility level 4.2 or lower, direct dash activation, or inherited exported PS1 in a child dash. A user must later activate the environment and draw the prompt.

Product: virtualenv (Python virtual environment creation and seeding tool). AI system: Anthropic OSS Scanner (specific model/version not identified in the item-level advisory). Team / organization: Anthropic and Python Packaging Authority (virtualenv maintainers).

CVE identifiers: CVE-2026-113723.

AI and human contribution (source account): The primary pypa advisory credits Anthropic OSS Scanner report ANT-2026-1MOI2X3T and provides tested scanner reproductions. Anthropic’s OSS Scanner page establishes model-generated reports; exact model/version is not listed for this issue.

Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.

Discovery context: The pypa maintainer advisory publicly identifies an Anthropic OSS Scanner report ID for this individual issue. Anthropic says OSS Scanner sends reports directly from its strongest models; this case has no named model/version. No exploitation or zero-day claim is made.

Remediation status: fix documented. The fix keeps a variable reference in PS1 so prompt content is expanded as data when rendered. Disable the environment prompt or use trusted prompt values on older versions. The advisory says the follow-up maintainer review identified additional activation paths; the scanner report itself found the prompt interpretation defect. Fixed in virtualenv 21.14.9. Deployed patch status is not checked.

A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.

Disclosed 17 Oct 2026. AI attribution dated 17 Oct 2026. Sources checked 14 Nov 2026; these are separate dates, not a live installation check.

Recorded CVSS: High · highest recorded score 7.1. Documented technical effects: code execution.

Severity, consequences and exploitation evidence

Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.

CVE-2026-113723: code execution.
Prerequisites / affected scope: 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. CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Exploitation evidence: Exploitation in the wild is not established by the cited description.. Impact source · checked 16 Nov 2026.

Documented fix: The fix keeps a variable reference in PS1 so prompt content is expanded as data when rendered. Disable the environment prompt or use trusted prompt values on older versions. The advisory says the follow-up maintainer review identified additional activation paths; the scanner report itself found the prompt interpretation defect. Fixed in virtualenv 21.14.9. Deployed patch status is not checked.

Original evidence

Download this source record (JSON)

Open this case in the interactive tracker · Browse all static security cases