// Security Advisory Triage

virtualenv 21.7.13 patches command injection in activation scripts

GitHub advisories — pip · published 2026-10-02 21:55 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDvirtualenv versions before 21.7.13 allow command injection through bash and fish activation scripts when the virtual environment path contains embedded commands. CVE-2026-102925 published 1 October 2026, rated high severity. Patched in 21.7.13.
WHY IT MATTERSAn attacker who controls the path where a virtual environment is created can execute arbitrary commands when a developer sources the activation script. This affects any workflow where venv paths come from untrusted input — CI systems cloning repos with malicious names, automated tooling processing user-supplied project paths.
WHAT TO DOUpgrade virtualenv to 21.7.13 or later. Grep your CI configs and automation scripts for `source */bin/activate` or `source */bin/activate.fish` to identify where activation happens, prioritizing any that process external input.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-p58f-9548-mpm2
+summary: virtualenv bash and fish activation scripts execute commands embedded in paths
+severity: high
+published_at: 2026-10-01T15:09:17Z
+cve_id: CVE-2026-102925
+vulnerabilities[].package.name: virtualenv
+vulnerabilities[].first_patched_version: 21.7.13
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningvirtualenv is a foundational Python tool in most service dependency trees. Command injection in activation scripts is exploitable during development and deployment.
signalsknown_cve_assigned · high_severity · python_package · activation_script_execution · command_injection_vector · patched_version_available
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)