ADVISORIES

Vulnerability

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.

27 advisories report this vulnerability, across 14 ecosystems.

Advisories

  • ALAS2023-2025-808

    Amazon Linux 2023 - ALAS2023-2025-808: Important priority package update for python3.12

    Important CVE-2024-12254CVE-2024-9287 Amazon Linux Updated 24 January 2025
  • ALPINE-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…

    CVE-2024-12254 Alpine Updated 2 November 2026
  • ALPINE-EDGE-CVE-2024-12254
    CVE-2024-12254 Alpine Updated 18 November 2026
  • ALSA-2024:10978

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:10980

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • AZL-54042

    CVE-2024-12254 affecting package python3 for versions less than 3.12.3-5

    CVE-2024-12254 Azure Linux Updated 21 April 2026
  • CGA-7rrv-3g42-jvxx
    CVE-2024-12254 ChainguardWolfi Updated 5 November 2026
  • CGA-ggv7-6g36-j69x
    CVE-2024-12254 ChainguardWolfi Updated 5 November 2026
  • CGA-hj5f-wf32-ph23
    CVE-2024-12254 ChainguardWolfi Updated 5 November 2026
  • CGA-mx65-224q-363p
    CVE-2024-12254 ChainguardWolfi Updated 5 November 2026
  • CNA-CVE-2024-12254

    Unbounded memory buffering in SelectorSocketTransport.writelines()

    CVE-2024-12254 Python Updated 31 July 2026
  • DEBIAN-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…

    CVE-2024-12254 Debian Updated 2 November 2026
  • ELSA-2024-10978

    ELSA-2024-10978: python3.12 security update (IMPORTANT)

    Important CVE-2024-12254CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • ELSA-2024-10980

    ELSA-2024-10980: python3.12 security update (IMPORTANT)

    Important CVE-2024-12254CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • RHBA-2025:6294

    Red Hat Bug Fix Advisory: python3.12 bug fix and enhancement update

    CVE-2024-12254CVE-2024-6232CVE-2024-9287CVE-2025-0938 Red Hat Updated 24 November 2026
  • RHSA-2024:10978

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:10980

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:11035

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RLSA-2024:10980

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2024:4291-1

    Security update for python312

    CVE-2024-12254 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2025:02074-1

    Security update for python313

    CVE-2024-12254CVE-2024-12718CVE-2024-9287CVE-2025-0938 SUSE Updated 4 February 2026
  • SUSE-SU-2025:0521-1

    Security update for python312

    CVE-2024-12254CVE-2025-0938 SUSEopenSUSE Updated 2 May 2025
  • UBUNTU-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…

    CVE-2024-12254 Ubuntu Updated 22 April 2026
  • USN-7219-1

    python3.12 vulnerability

    CVE-2024-12254 Ubuntu Updated 22 April 2026
  • openSUSE-SU-2024:14581-1

    python312-3.12.8-1.1 on GA media

    CVE-2024-12254 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14691-1

    python313-3.13.1-1.1 on GA media

    CVE-2024-12254 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:14998-1

    python311-aiohttp-3.11.16-1.1 on GA media

    CVE-2024-12254 openSUSE Updated 4 February 2026

References