CVE-2026-113732: Poetry · virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote
Affects poetrySource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 2.5.1_1 or 1.2.2_1 soon.
Data as of 30 Oct 2026, 08:17 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.8 |
|---|
- Patch
- Available – fixed in 2.5.1_1, 1.2.2_1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade poetry to 2.5.1_1 or 1.2.2_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpoetrypkg:brew/poetryOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied by upgrading Poetry to versions 1.2.2_1 or 2.5.1_1 or later. The fix properly escapes backslashes and single quotes in activate.fish to prevent command injection. Until patched, avoid creating virtual environments with paths or prompts containing backslashes before quotes. Inspect activate.fish scripts before sourcing them if they come from untrusted sources.
Description
A command injection vulnerability exists in Poetry's virtualenv activate.fish script due to improper quoting of paths or prompts containing backslashes before quotes. This allows fish shell to interpret and execute injected commands when sourcing activate.fish. The issue affects all Poetry releases up to 1.2.2_1 and 2.5.1_1 that ship activate.fish. It was fixed in versions 1.2.2_1 and 2.5.1_1 by properly escaping backslashes and single quotes in activate.fish.
References
- github.com/pypa/virtualenv/security/advisories/GHSA-c947-3pg5-gm8q (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-113732 (opens in a new tab)
- github.com/pypa/virtualenv/commit/3bddeaf8d02c3ee7f576503efb082f8f494cfcab (opens in a new tab)
- github.com/pypa/virtualenv (opens in a new tab)
- github.com/pypa/virtualenv/releases/tag/21.14.2 (opens in a new tab)