CVE-2026-113716: virtualenv · Builtin creation follows linked environment directories
Affects hatchSource GCVE Database
Not known to be exploited · CVSS 4.5 Medium : upgrade to 1.18.1_2 or 1.6.2 when convenient.
Data as of 27 Oct 2026, 23:27 UTC
- Patch
- Available – fixed in 1.18.1_2, 1.6.2
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade hatch to 1.18.1_2 or 1.6.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewhatchpkg:brew/hatchOther 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 fix is available in virtualenv versions 1.6.2 and 1.18.1_2 and later. Users should upgrade to these versions or newer to mitigate this vulnerability. The vendor advisory confirms patch availability. No additional action is required if patched. If upgrading is not immediately possible, avoid creating virtual environments in directories that contain attacker-controlled symlinks.
Description
A vulnerability in the builtin creator of virtualenv allows directory symlinks to be followed during environment creation, enabling writes outside the intended destination directory. An attacker who can prepare linked directories under the target path can cause files such as executables and activation scripts to be written to locations like ~/.local/bin. This can lead to code execution when the user runs commands from the affected PATH. The issue affects virtualenv versions prior to 1.6.2 and 1.18.1_2, with fixes available in those versions.
References
- github.com/pypa/virtualenv/security/advisories/GHSA-cw65-gx24-rc82 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-113716 (opens in a new tab)
- github.com/pypa/virtualenv/pull/3429 (opens in a new tab)
- github.com/pypa/virtualenv/commit/554d9f9d4f7758f5cf53f993031e29787f1f74c5 (opens in a new tab)
- github.com/pypa/virtualenv (opens in a new tab)
- github.com/pypa/virtualenv/releases/tag/21.14.9 (opens in a new tab)