Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2024-9287: 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. CVE-2024-12254: Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not periodically drain the write buffer potentially leading to memory exhaustion. This vulnerability likely impacts a small number of users, you must be using Python 3.12.0 or later, on macOS or Linux, using the asyncio module with protocols, and using .writelines() method which had new zero-copy-on-write behavior in Python 3.12.0 and later. If not all of these factors are true then your usage of Python is unaffected.
Fixed packages 9
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | python3.12 | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-debug | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-debuginfo | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-debugsource | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-devel | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-idle | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-libs | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-test | 0:3.12.8-1.amzn2023.0.1 |
| Amazon Linux · 2023 | python3.12-tkinter | 0:3.12.8-1.amzn2023.0.1 |
Vulnerabilities 2
-
High 8.7
Unbounded memory buffering in SelectorSocketTransport.writelines()
Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not …
-
Medium 5.3
Virtual environment (venv) activation scripts don't quote paths
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/…