# CVE-2024-53899

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 20.26.6 (CNA); fix release not confirmed
- Status: published
- Published: 2024-11-24 · Modified: 2024-11-24
- Aliases: SUSE-SU-2024:4093-1, SUSE-SU-2024:4143-1, GHSA-rqc4-2hc7-8c8v, BIT-virtualenv-2024-53899, PYSEC-2024-187, RHSA-2024:10953, RHSA-2024:11048, RHSA-2024:11091, RHSA-2024:11093, RHSA-2024:11094, RHSA-2025:0002, UBUNTU-CVE-2024-53899, USN-7271-1, USN-7271-2, DEBIAN-CVE-2024-53899, CGA-4qxg-wfpj-jqrc, CGA-hrm7-c928-fq9v, CGA-jf74-jfx6-whrw, CGA-qh3x-653h-54q6, openSUSE-SU-2025:15252-1, CGA-8gjw-5mwg-44g4, CGA-8gjx-jr9x-7785, CGA-9rj9-69f5-m4mp, CGA-gqv3-5g87-jxr4
- Record: https://cvemate.com/vulnerability/CVE-2024-53899 · JSON: https://cvemate.com/vulnerability/CVE-2024-53899/json

## Description

```text
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.
```

## Signals

- CVSS: 8.4 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.572%, percentile 76.255%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 60)

- chainguard py3-cassandra-medusa (Chainguard): \< 0.23.0-r0
- chainguard py3-cassandra-medusa-compat (Chainguard): \< 0.23.0-r0
- chainguard request-1276 (Chainguard): \< 0.23.0-r0
- chainguard request-1276-compat (Chainguard): \< 0.23.0-r0
- wolfi py3-cassandra-medusa (Wolfi): \< 0.23.0-r0
- wolfi py3-cassandra-medusa-compat (Wolfi): \< 0.23.0-r0
- debian python-virtualenv (Debian): All versions (No fix recorded) \| \< 20.26.6+ds-1
- ubuntu python-virtualenv (Ubuntu): \< 20.0.17-1ubuntu0.4+esm1 \| All versions (No fix recorded) \| \< 20.13.0+ds-2ubuntu0.1~esm1 \| \< 20.25.0+ds-2ubuntu0.1~esm1
- PyPI virtualenv (PyPI): \< 20.26.6
- opensuse oci-cli&distro=openSUSE Tumbleweed (openSUSE): \< 3.61.0-1.1
- opensuse python-virtualenv&distro=openSUSE Leap 15.5 (openSUSE): \< 20.22.0-150400.9.6.1
- opensuse python-virtualenv&distro=openSUSE Leap 15.6 (openSUSE): \< 20.22.0-150400.9.6.1
- opensuse python3-virtualenv&distro=openSUSE Leap 15.6 (openSUSE): \< 20.17.1-150600.3.5.1
- redhat python-distro (Red Hat): \< 0:1.4.0-2.module+el8.10.0+20784+edafcd43 \| \< 0:1.4.0-2.module+el8.1.0+3334+5cb623d7
- redhat python-docs (Red Hat): \< 0:3.6.7-2.module+el8.10.0+20784+edafcd43 \| \< 0:3.6.7-2.module+el8.1.0+3334+5cb623d7
- redhat python-docutils (Red Hat): \< 0:0.14-12.module+el8.10.0+20784+edafcd43 \| \< 0:0.14-12.module+el8.1.0+3334+5cb623d7
- redhat python-nose (Red Hat): \< 0:1.3.7-31.module+el8.10.0+20784+edafcd43 \| \< 0:1.3.7-30.module+el8.1.0+3334+5cb623d7 \| \< 0:1.3.7-31.module+el8.5.0+12207+5c5719bc \| \< 0:1.3.7-30.module+el8.4.0+15040+36b018e7.1
- redhat python-nose-docs (Red Hat): \< 0:1.3.7-31.module+el8.10.0+20784+edafcd43 \| \< 0:1.3.7-30.module+el8.1.0+3334+5cb623d7 \| \< 0:1.3.7-31.module+el8.5.0+12207+5c5719bc \| \< 0:1.3.7-30.module+el8.4.0+15040+36b018e7.1
- redhat python-pygments (Red Hat): \< 0:2.2.0-22.module+el8.10.0+20784+edafcd43 \| \< 0:2.2.0-22.module+el8.5.0+10789+e4939b94 \| \< 0:2.2.0-20.module+el8.1.0+3334+5cb623d7
- redhat python-pymongo (Red Hat): \< 0:3.7.0-1.module+el8.10.0+20784+edafcd43 \| \< 0:3.6.1-11.module+el8.1.0+3334+5cb623d7 \| \< 0:3.7.0-1.module+el8.4.0+9670+1849b5f9

## References (first 20 of 33)

- <https://github.com/pypa/virtualenv/issues/2768>
- <https://github.com/pypa/virtualenv/releases/tag/20.26.6>
- <https://github.com/pypa/virtualenv/pull/2771>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20244093-1/>
- <https://bugzilla.suse.com/1233706>
- <https://www.suse.com/security/cve/CVE-2024-53899>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20244143-1/>
- <https://bugzilla.suse.com/1232072>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53899>
- <https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml>
- <https://github.com/pypa/virtualenv>
- <https://github.com/advisories/GHSA-rqc4-2hc7-8c8v>
- <https://access.redhat.com/errata/RHSA-2024:10953>
- <https://access.redhat.com/security/updates/classification/#important>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2328554>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10953.json>
- <https://access.redhat.com/security/cve/CVE-2024-53899>
- <https://www.cve.org/CVERecord?id=CVE-2024-53899>
- <https://access.redhat.com/errata/RHSA-2024:11048>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_11048.json>

---

Data as of 2026-12-05T07:51:58.018Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
