CVSS 4.0
8.7 highCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NHigh (8.7) in python software foundation cpython. EPSS 1.9% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExplain CVE-2024-12254 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-12254?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-12254?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-12254 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Python Software Foundation CPython | before 3.12.9 |
| Python Software Foundation CPython | from 3.13.0 before 3.13.2 |
| Python Software Foundation CPython | from 3.14.0a1 before 3.14.0a3 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | python3.13 | 3.13.1-2 | DEBIAN-CVE-2024-12254 |
| Ubuntu | 24.04:LTS | python3.12 | 3.12.3-1ubuntu0.4 | UBUNTU-CVE-2024-12254 USN-7219-1 |
| Red Hat | enterprise_linux:8::appstream | python3.12, python3.12-libs, python3.12-devel and 4 more | 0:3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat | enterprise_linux:8::crb | python3.12, python3.12-idle, python3.12-test and 4 more | 0:3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat | enterprise_linux:9::appstream | python3.12, python3.12-libs, python3.12-devel and 3 more | 0:3.12.5-2.el9_5.2 | RHSA-2024:10978 |
| Red Hat | enterprise_linux:9::crb | python3.12, python3.12-idle, python3.12-test and 4 more | 0:3.12.5-2.el9_5.2 | RHSA-2024:10978 |
| Red Hat | enterprise_linux:10.0 | python3, python3.12, python3-idle and 8 more | 0:3.12.9-1.el10 | RHBA-2025:6294 |
| Red Hat | rhel_eus:9.4::appstream | python3.12, python3.12-libs, python3.12-devel and 3 more | 0:3.12.1-4.el9_4.5 | RHSA-2024:11035 |
| Red Hat | rhel_eus:9.4::crb | python3.12, python3.12-idle, python3.12-test and 4 more | 0:3.12.1-4.el9_4.5 | RHSA-2024:11035 |
| SUSE | Linux Enterprise Module for Python 3 15 SP6 | python312, python312-core | 3.12.8-150600.3.12.1 | SUSE-SU-2024:4291-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP6 | python312, python312-core | 3.12.9-150600.3.18.1 | SUSE-SU-2025:0521-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP7 | python313, python313-core | 3.13.5-150700.4.11.1 | SUSE-SU-2025:02074-1 |
| openSUSE | Leap 15.6 | python312, python312-core, python312-documentation | 3.12.8-150600.3.12.1 | SUSE-SU-2024:4291-1 |
| openSUSE | Leap 15.6 | python312, python312-core, python312-documentation | 3.12.9-150600.3.18.1 | SUSE-SU-2025:0521-1 |
| openSUSE | Tumbleweed | python-aiohttp | 3.11.16-1.1 | openSUSE-SU-2025:14998-1 |
| openSUSE | Tumbleweed | python312 | 3.12.8-1.1 | openSUSE-SU-2024:14581-1 |
| openSUSE | Tumbleweed | python313 | 3.13.1-1.1 | openSUSE-SU-2025:14691-1 |
| AlmaLinux | 8 | python3.12, python3.12-idle, python3.12-libs and 5 more | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 9 | python3.12, python3.12-idle, python3.12-libs and 4 more | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| Rocky Linux | 8 | python3.12 | 0:3.12.8-1.el8_10 | RLSA-2024:10980 |
| Alpine | v3.20, v3.21, v3.22 and 2 more | python3 | 3.12.8-r1 | ALPINE-CVE-2024-12254 |
| Azure Linux | 3 | python3 | 3.12.3-5 | AZL-54042 |
| Alpaquita | stream | python3 | 3.12.8-r1 | BELL-CVE-2024-12254 |
| BellSoft Hardened Containers | stream | python3 | 3.12.8-r1 | BELL-CVE-2024-12254 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.
Red Hat rates this Important.
This vulnerability likely impacts a small number of users. You must be using Python 3.12.0 or later, on 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.
This vulnerability is rated with an Important severity due to its potential for denial of service (DoS) attacks through memory exhaustion. By failing to signal the protocol to drain the write buffer when approaching the high-water mark, the affected `asyncio._SelectorSocketTransport.writelines()` method introduces a important flaw in flow control. This flaw can lead to uncontrolled growth of the buffer in long-running or high-throughput applications, which are typical in networked systems or event-driven architectures. Given that `asyncio` is widely used in performance-critical Python applications for handling asynchronous I/O, the impact of memory exhaustion could destabilize services, compromise system availability, and increase the risk of cascading failures, especially in production environments handling large-scale or untrusted inputs.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | python3.12-0:3.12.9-1.el10 | Fixed 2025-05-13 | RHBA-2025:6294 |
| Red Hat Enterprise Linux 8 | python3.12-0:3.12.8-1.el8_10 | Fixed 2024-12-12 | RHSA-2024:10980 |
| Red Hat Enterprise Linux 9 | python3.12-0:3.12.5-2.el9_5.2 | Fixed 2024-12-12 | RHSA-2024:10978 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | python3.12-0:3.12.1-4.el9_4.5 | Fixed 2024-12-13 | RHSA-2024:11035 |
| Red Hat Enterprise Linux 6 | python | Not affected | |
| Red Hat Enterprise Linux 7 | python | Not affected | |
| Red Hat Enterprise Linux 7 | python3 | Not affected | |
| Red Hat Enterprise Linux 8 | gimp:flatpak/python2 | Not affected | |
| Red Hat Enterprise Linux 8 | python3 | Not affected | |
| Red Hat Enterprise Linux 8 | python3.11 | Not affected | |
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Not affected | |
| Red Hat Enterprise Linux 8 | python39:3.9/python39 | Not affected | |
| Red Hat Enterprise Linux 8 | python39-devel:3.9/python39 | Not affected | |
| Red Hat Enterprise Linux 9 | python3.11 | Not affected | |
| Red Hat Enterprise Linux 9 | python3.9 | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-amd-rhel9 | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-azure-nvidia-rhel9 | Not affected | |
| Red Hat Enterprise Linux AI (RHEL AI) | rhelai1/bootc-nvidia-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-12254.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).