PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-113725 pypa CVE debrief

The CVE-2026-113725 vulnerability in virtualenv's bash activate script allows for command execution when a backslash is present in the environment name before $. This occurs because the script escapes the environment name for only one of the two passes bash makes over `PS1`. The vulnerability impacts deployments with untrusted inputs influencing environment names. Defenders should assess exposure and prioritize remediation. The issue was introduced due to incomplete escaping of environment names, which can be influenced through various means such as CI jobs, wrapper tools, or directory names in cloned repositories or unpacked archives.

Vendor
pypa
Product
virtualenv
CVSS
HIGH 7.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-21
Original CVE updated
2026-10-21
Advisory published
2026-10-21
Advisory updated
2026-10-21

Who should care

Defenders responsible for virtualenv deployments, especially those with untrusted inputs influencing environment names, should assess exposure and prioritize remediation. This includes operators, platform administrators, vulnerability management teams, and security teams who oversee virtualenv usage. They should review the vulnerability's impact on their systems, verify affected versions, and apply necessary patches or mitigations.

Why it matters

CVE-2026-113725 allows for command execution in virtualenv's bash activate script via specially crafted environment names, impacting deployments with untrusted inputs.

  • Command execution in bash prompts via specially crafted environment names.
  • Potential for lateral movement if environment names are influenced by untrusted inputs.
  • Need for verification of affected versions and remediation to prevent exploitation.

Technical summary

The bash `activate` script in virtualenv escapes the environment name for only one of the two passes bash makes over `PS1`, allowing for command execution when a backslash is present in the environment name before $. This vulnerability arises from the script's incomplete handling of backslashes, dollar signs, and backticks in environment names. An attacker can exploit this by influencing the environment name through various means, such as CI jobs, wrapper tools, or directory names in cloned repositories or unpacked archives.

Defensive priority

Defenders should prioritize verifying and remediating affected virtualenv deployments, especially where environment names are influenced by untrusted inputs.

Recommended defensive actions

  • Verify virtualenv deployments for affected versions (<= 21.14.6) and update to 21.14.7 or later.
  • Review and restrict environment names to prevent influence from untrusted inputs.
  • Monitor bash prompts for suspicious activity.
  • Implement additional logging and monitoring for environment name inputs.
  • Conduct regular security audits of virtualenv deployments.
  • Establish a process for rapid patching of vulnerable components.
  • Consider using alternative activation scripts or tools.

Evidence notes

The CVE record and source item provide details on the vulnerability in virtualenv's bash activate script, which allows for command execution when a backslash is present in the environment name before $.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-113725 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-113725

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-113725 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-113725

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.