# CVE-2026-102925: virtualenv bash and fish activation scripts execute commands embedded in paths

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-09-18T04:37:14.000Z
- Modified: 2026-11-24T18:23:38.387Z
- Also known as: GHSA-p58f-9548-mpm2, BIT-VIRTUALENV-2026-102925, PYSEC-2026-4013
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.13, the generated activate (bash and zsh) and activate.fish scripts place values already escaped by shlex.quote inside an additional quoted context. In the bash and zsh script, a crafted virtual environment path reaches __VIRTUAL_ENV__ when a relocated environment's recorded directory is absent; in the fish script, crafted Tcl or Tk library paths reach __TCL_LIBRARY__ or __TK_LIBRARY__. The surplus quotes can terminate the data-only quoted run and leave shell metacharacters parsed as commands when a user sources the activation script, allowing code execution with that user's privileges. This issue is fixed in version 21.7.13.

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.7.13
- virtualenv (PyPI): before 21.7.13
- virtualenv virtualenv: from 20.33.0 before 21.7.13
- virtualenv (Bitnami): before 21.7.13

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2> (advisory, mitigation, patch, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/pull/3252> (fix, issue-tracking, patch, web)
- <https://github.com/pypa/virtualenv/commit/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.7.13> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102925> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4013.yaml> (web)
- <https://github.com/pypa/virtualenv> (package)
- <https://pypi.org/project/virtualenv> (package, web)

## Sources

- CVE List: [CVE-2026-102925](https://www.cve.org/CVERecord?id=CVE-2026-102925), CVE Terms of Use, modified 2026-09-30
- GitHub Advisory Database: [GHSA-p58f-9548-mpm2](https://github.com/advisories/GHSA-p58f-9548-mpm2), CC-BY-4.0, modified 2026-10-06
- NVD: [CVE-2026-102925](https://nvd.nist.gov/vuln/detail/CVE-2026-102925), Public domain, modified 2026-11-24
- PyPA Advisory Database: [PYSEC-2026-4013](https://osv.dev/vulnerability/PYSEC-2026-4013), CC-BY-4.0, modified 2026-10-06
- Bitnami Vulnerability Database: [BIT-VIRTUALENV-2026-102925](https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-102925), Apache-2.0, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-102925 · Whole record: https://cve.day/CVE-2026-102925.json · Rebuilt by cve.day 2026-11-25T22:59:41.573Z
