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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-29 · Modified: 2026-09-30
- Aliases: GHSA-p58f-9548-mpm2, BIT-virtualenv-2026-102925, PYSEC-2026-4013, UBUNTU-CVE-2026-102925, DEBIAN-CVE-2026-102925, CGA-833q-qf54-756f, CGA-wm24-rj2x-8526, CGA-357c-p3cf-7hf5, CGA-3mx9-g4h9-725q, CGA-hgp4-vjx4-6q3p, CGA-r5xg-qgrg-56vq
- Record: https://cvemate.com/vulnerability/CVE-2026-102925 · JSON: https://cvemate.com/vulnerability/CVE-2026-102925/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.162%, percentile 5.568%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard mlflow-fips-iamguarded-compat (Chainguard): \< 3.16.1-r1
- chainguard py3-cassandra-medusa (Chainguard): \< 0.30.1-r3
- chainguard request-1276 (Chainguard): \< 0.30.1-r3
- wolfi py3-cassandra-medusa (Wolfi): \< 0.30.1-r3
- debian python-virtualenv (Debian): All versions (No fix recorded) \| \< 21.15.6+ds-1
- ubuntu python-virtualenv (Ubuntu): All versions (No fix recorded)
- pypa virtualenv: \< 21.7.13
- PyPI virtualenv (PyPI): \< 21.7.13
- virtualenv virtualenv: \< 21.7.13 \| ≥ 20.33.0, \< 21.7.13

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2>
- <https://github.com/pypa/virtualenv/pull/3252>
- <https://github.com/pypa/virtualenv/commit/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6>
- <https://github.com/pypa/virtualenv/releases/tag/21.7.13>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102925>
- <https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4013.yaml>
- <https://github.com/pypa/virtualenv>
- <https://pypi.org/project/virtualenv>
- <https://ubuntu.com/security/CVE-2026-102925>
- <https://www.cve.org/CVERecord?id=CVE-2026-102925>
- <https://security-tracker.debian.org/tracker/CVE-2026-102925>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102925.json>

---

Data as of 2026-12-05T06:42:43.340Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
