{
  "id": "CVE-2026-102937",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-102937",
  "published_at": "2026-09-29T20:56:13.998Z",
  "title": "virtualenv: Command injection via --prompt in activate.bat (batch activator)",
  "vendor": "pypa",
  "product": "virtualenv",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchanged before activate.bat inserts it into a cmd.exe set \"VAR=value\" statement. An attacker who influences --prompt, VIRTUALENV_PROMPT, or the corresponding configuration value can include a double quote that closes the assignment and leaves following cmd.exe operators as executable syntax. When a user activates the generated Windows environment, the injected commands run with that user's privileges. This issue is fixed in version 21.7.12.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.3,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "pypa",
        "product": "virtualenv",
        "ranges": [
          "\u003c 21.7.12"
        ],
        "fixed_in": [
          "21.7.12"
        ]
      }
    ],
    "upgrade": [
      "Upgrade virtualenv to 21.7.12 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-x78j-v8h9-3j2q"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pypa/virtualenv/pull/3250"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pypa/virtualenv/commit/d721ff140ce4afdc2a9b76751e4584e25d9fbea6"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/pypa/virtualenv/releases/tag/21.7.12"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
