Advisory

PYSEC-2024-187

Also known as: BIT-virtualenv-2024-53899, CVE-2024-53899, GHSA-rqc4-2hc7-8c8v

Summary

The record has no summary.

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

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2024-11-24 16:15 UTC
Modified
2026-06-10 17:02 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: PyPA Advisory Database · CC BY 4.0

Sources & licences