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
-
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…
- ALPINE-EDGE-CVE-2024-12254
-
ALSA-2024:10978
Important: python3.12 security update
-
ALSA-2024:10980
Important: python3.12 security update
-
AZL-54042
CVE-2024-12254 affecting package python3 for versions less than 3.12.3-5
- CGA-7rrv-3g42-jvxx
- CGA-ggv7-6g36-j69x
- CGA-hj5f-wf32-ph23
- CGA-mx65-224q-363p
-
CNA-CVE-2024-12254
Unbounded memory buffering in SelectorSocketTransport.writelines()
-
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…
-
ELSA-2024-10978
ELSA-2024-10978: python3.12 security update (IMPORTANT)
-
ELSA-2024-10980
ELSA-2024-10980: python3.12 security update (IMPORTANT)
-
RHBA-2025:6294
Red Hat Bug Fix Advisory: python3.12 bug fix and enhancement update
-
RHSA-2024:10978
Red Hat Security Advisory: python3.12 security update
-
RHSA-2024:10980
Red Hat Security Advisory: python3.12 security update
-
RHSA-2024:11035
Red Hat Security Advisory: python3.12 security update
-
RLSA-2024:10980
Important: python3.12 security update
-
SUSE-SU-2024:4291-1
Security update for python312
-
SUSE-SU-2025:02074-1
Security update for python313
-
SUSE-SU-2025:0521-1
Security update for python312
-
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…
-
USN-7219-1
python3.12 vulnerability
-
openSUSE-SU-2024:14581-1
python312-3.12.8-1.1 on GA media
-
openSUSE-SU-2025:14691-1
python313-3.13.1-1.1 on GA media
-
openSUSE-SU-2025:14998-1
python311-aiohttp-3.11.16-1.1 on GA media
References
- https://github.com/python/cpython/commit/71e8429ac8e2adc10084ab5ec29a62f4b6671a82
- https://github.com/python/cpython/commit/9aa0deb2eef2655a1029ba228527b152353135b5
- https://github.com/python/cpython/commit/e991ac8f2037d78140e417cc9a9486223eb3e786
- https://github.com/python/cpython/issues/127655
- https://github.com/python/cpython/pull/127656
- https://mail.python.org/archives/list/[email protected]/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/
- http://www.openwall.com/lists/oss-security/2024/12/06/1
- https://security.netapp.com/advisory/ntap-20250404-0010/