Advisory

GHSA-rqc4-2hc7-8c8v

Also known as: BIT-virtualenv-2024-53899, CVE-2024-53899, PYSEC-2024-187

Summary

virtualenv allows command injection through activation scripts for a virtual environment

Details

virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-24 18:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

virtualenv

PyPI · All systems

Affected

  • introduced 0, fixed 20.26.6 (ecosystem)

Fixed versions

20.26.6

Fix

  • Fixed version 20.26.6
    pip install --upgrade virtualenv==20.26.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences