## virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote

- 種別: advisory
- 重大度: high
- 関連技術: python
- CVE: CVE-2026-113732
- 公開日時: 2026-10-21T16:39:58.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-c947-3pg5-gm8q)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-c947-3pg5-gm8q

影響: pip:virtualenv <= 21.14.1 → 21.14.2
Impact FishActivator defines no quote(), so it inherits ViaTemplateActivator.quote, which returns shlex.quote(string). That function follows POSIX sh rules, where a backslash inside single quotes stays a literal character. fish reads \' inside single quotes as an escaped quote and \\ as an escaped backslash. A value with a backslash before a quote therefore ends the literal somewhere other than where shlex.quote put the end, and fish expands the command substitution that follows. The environmen…