CVE-2026-113725: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in pypa virtualenv
Description
CVE-2026-113725 is an OS command injection vulnerability in pypa virtualenv versions prior to 21.14.7. The bash activate script improperly escapes environment names containing backslashes, allowing command execution in the user's shell prompt. This issue is fixed in version 21.14.7.
CVSS v3.1
Score 7.8high
Affected software
pypa
virtualenv
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the bash activate script of pypa virtualenv before version 21.14.7. The script escapes the environment name for only one of the two passes bash makes over the PS1 prompt variable. If the environment name contains a backslash followed by command substitution syntax (e.g., \$(...)), the escaping is undone, causing the commands to be executed each time bash draws the prompt. This constitutes an OS command injection (CWE-78) due to improper neutralization of special elements in the environment name. The issue is resolved in version 21.14.7.
Potential Impact
An attacker who can control or influence the environment name can inject arbitrary commands that execute in the user's shell prompt, potentially leading to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 7.8 (high), reflecting local attack vector with low complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade pypa virtualenv to version 21.14.7 or later, where the vulnerability is fixed. Since this is a client-side tool, users should apply the official patch to prevent command injection via environment names in the bash activate script.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-20T16:03:14.863Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Is Cloud Service
- true
Threat ID: 6ad7c9302cdf04f656591b12
Added to database: 10/20/2026, 20:04:00 UTC
Last enriched: 10/20/2026, 20:18:23 UTC
Last updated: 10/20/2026, 20:19:54 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.