{"id":"CVE-2026-113732","title":"virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes diffe…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cvssSource":"cna","cwe":["CWE-78","CWE-116","CWE-94"],"vendor":"pypa","product":"virtualenv","affected":["virtualenv < 21.14.2"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-27T13:26:40.567506Z"},"published":"2026-10-20","updated":"2026-10-27","sourceUpdated":"2026-10-27T13:26:51.760Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-113732","references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q","label":"https://github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q"},{"url":"https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab","label":"https://github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab"},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.2","label":"https://github.com/pypa/virtualenv/releases/tag/21.14.2"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113732"},{"url":"https://github.com/pypa/virtualenv"},{"url":"https://github.com/advisories/GHSA-c947-3pg5-gm8q"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-113732.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-113732"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2557255"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-113732"}],"tags":["cve.org","osv","pip","ghsa","csaf","vex","red-hat"],"epss":0.00236,"epssPercentile":0.14581,"aliases":["GHSA-c947-3pg5-gm8q"],"ecosystem":"pip","patched":["virtualenv 21.14.2"],"ingestedAt":"2026-10-20T22:23:33.690Z","slug":"CVE-2026-113732","body":"## Overview\n\nvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes differently. An attacker-influenced environment path, --prompt, or VIRTUALENV_PROMPT value containing a backslash before a quote can therefore terminate the generated fish literal and execute command substitution when the user sources activate.fish. This issue is fixed in version 21.14.2.\n\n## Affected\n\n- `virtualenv < 21.14.2`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-113732)\n\nAffected packages:\n\n- `virtualenv < 21.14.2`\n\nPatched in:\n\n- `virtualenv 21.14.2`\n\nSource: https://osv.dev/vulnerability/GHSA-c947-3pg5-gm8q\n\n## Vendor advisories\n\n- **Red Hat VEX** · Important · affected: OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Container Platform 4, Red Hat OpenShift Dev Spaces, Red Hat Satellite 6 · no fix planned: OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Container Platform 4, … · updated 2026-10-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-113732.json)","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}