CVE-2024-9287
Description
A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
AlmaLinux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | python3-devel-3.9.21-1.el9_5.aarch64.rpm |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 7.3.17+dfsg-3 |
| sid | Fixed | 7.3.17+dfsg-3 |
| forky | Fixed | 7.3.17+dfsg-3 |
| bullseye | Fixed | 7.3.5+dfsg-2+deb11u4 |
| bookworm | Fixed | 7.3.11+dfsg-2+deb12u3 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | โ |
| 8 | Fixed | โ |
References
- https://errata.rockylinux.org/RLSA-2025:23530
- https://access.redhat.com/errata/RHSA-2024:10978
- https://access.redhat.com/errata/RHSA-2024:10983
- https://access.redhat.com/errata/RHSA-2024:11111
- https://errata.rockylinux.org/RLSA-2024:10980
- https://errata.rockylinux.org/RLSA-2024:10979
- https://errata.rockylinux.org/RLSA-2024:10779
- https://www.suse.com/security/cve/CVE-2024-9287.html
- https://errata.rockylinux.org/RLSA-2024:11111
- https://errata.rockylinux.org/RLSA-2024:10978
- https://security-tracker.debian.org/tracker/CVE-2024-9287
- https://access.redhat.com/errata/RHSA-2024:10979
- https://bugzilla.redhat.com/2321440
- https://errata.almalinux.org/8/ALSA-2024-10979.html
- https://errata.almalinux.org/9/ALSA-2024-11111.html
- https://access.redhat.com/errata/RHSA-2024:10980
- https://bugzilla.redhat.com/2330804
- https://errata.almalinux.org/8/ALSA-2024-10980.html
- https://access.redhat.com/errata/RHSA-2024:10779
- https://bugzilla.redhat.com/2325776
- https://errata.almalinux.org/8/ALSA-2024-10779.html
- https://errata.almalinux.org/9/ALSA-2024-10978.html
- https://errata.almalinux.org/9/ALSA-2024-10983.html
- https://access.redhat.com/errata/RHSA-2025:23530
- https://bugzilla.redhat.com/2294682
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.