Skip to content
OpenAdvisories
High ALAS2023-2025-808 2 CVEs

Important: python3.12 security update (Amazon Linux 2023)

Published Jan 21, 2025 · Updated Jan 24, 2025

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

ReleasePackageFixed 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

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2024-12254.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2024-9287.html