{
  "id": "CVE-2026-115586",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-115586",
  "published_at": "2026-10-23T19:34:46.391Z",
  "title": "virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion later executes it (regression in 21.14.9)",
  "vendor": "pypa",
  "product": "virtualenv",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "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. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "pypa",
        "product": "virtualenv",
        "ranges": [
          "\u003e= 21.14.9, \u003c 21.14.13"
        ],
        "fixed_in": [
          "21.14.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade virtualenv to 21.14.13 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3cc"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pypa/virtualenv/pull/3466"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/pypa/virtualenv/releases/tag/21.14.13"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
