{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2024-12254 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.12.9 or 3.13.2.","what":"CVE-2024-12254 is a high-severity denial of service vulnerability in CPython, published on 6 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-12254 and fix it if it is affected.\n\nWhat it is: CVE-2024-12254 is a high-severity denial of service vulnerability in CPython, published on 6 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-12254 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected from 3.12.0; fixed in 3.12.9, 3.13.2\n- python (Bitnami): affected from 3.12.0; fixed in 3.12.9, 3.13.2\n- python-min (Bitnami): affected from 3.12.0; fixed in 3.12.9, 3.13.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-12254/ (Markdown: https://insights.sbomify.com/CVE-2024-12254/index.md)","id":"CVE-2024-12254","markdown":"https://insights.sbomify.com/CVE-2024-12254/index.md","name":"CVE-2024-12254","record":{"aliases":["ALPINE-CVE-2024-12254","AZL-54042","BELL-CVE-2024-12254","BIT-libpython-2024-12254","BIT-python-2024-12254","BIT-python-min-2024-12254","CLEANSTART-2026-KC88775","DEBIAN-CVE-2024-12254","GHSA-ph84-rcj2-fxxm","MINI-fjr7-w49j-5jpp","MINI-m6h2-g3c7-pwrx","PSF-2024-14","SUSE-SU-2024:4291-1","UBUNTU-CVE-2024-12254","USN-7219-1","openSUSE-SU-2024:14581-1","openSUSE-SU-2025:14691-1","openSUSE-SU-2025:14998-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Python asyncio library","requires_auth":"none","summary":"Attackers can cause memory exhaustion and denial of service in Python applications using asyncio protocols with writelines() on Linux or macOS.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines()\n method would not \"pause\" writing and signal to the Protocol to drain \nthe buffer to the wire once the write buffer reached the \"high-water \nmark\". Because of this, Protocols would not periodically drain the write\n buffer potentially leading to memory exhaustion.\n\nThis\n vulnerability likely impacts a small number of users, you must be using\n Python 3.12.0 or later, on macOS or Linux, using the asyncio module \nwith protocols, and using .writelines() method which had new \nzero-copy-on-write behavior in Python 3.12.0 and later. If not all of \nthese factors are true then your usage of Python is unaffected.","ecosystems":["Bitnami","SUSE:Linux Enterprise Module for Python 3 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Unbounded memory buffering in SelectorSocketTransport.writelines()","id":"CVE-2024-12254","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":11,"n_references":6,"next":{"headline":"Accept Stripe Payments Using Contact Form 7 \u003c= 2.5 - Unauthenticated Information Exposure","id":"CVE-2024-12255"},"packages":[{"ecosystem":"Bitnami","fixed":["3.12.9","3.13.2"],"introduced":["3.12.0","3.13.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2024-12254"},{"ecosystem":"Bitnami","fixed":["3.12.9","3.13.2"],"introduced":["3.12.0","3.13.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2024-12254"},{"ecosystem":"Bitnami","fixed":["3.12.9","3.13.2"],"introduced":["3.12.0","3.13.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2024-12254"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["3.12.8-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python312","purl":"pkg:rpm/suse/python312\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:4291-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["3.12.8-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python312-core","purl":"pkg:rpm/suse/python312-core\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:4291-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.12.8-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python312","purl":"pkg:rpm/opensuse/python312\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4291-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.12.8-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python312-core","purl":"pkg:rpm/opensuse/python312-core\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4291-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.12.8-150600.3.12.1"],"introduced":["0"],"last_affected":[],"package":"python312-documentation","purl":"pkg:rpm/opensuse/python312-documentation\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4291-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.11.16-1.1"],"introduced":["0"],"last_affected":[],"package":"python-aiohttp","purl":"pkg:rpm/opensuse/python-aiohttp\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14998-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.12.8-1.1"],"introduced":["0"],"last_affected":[],"package":"python312","purl":"pkg:rpm/opensuse/python312\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14581-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.13.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python313","purl":"pkg:rpm/opensuse/python313\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14691-1"}],"prev":{"headline":"Missing authorization in Simple Ecommerce Shopping Cart Plugin- Sell products through Paypal","id":"CVE-2024-12253"},"products":["CPython"],"published":"2024-12-06","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-31","vendors":["Python Software Foundation"]},"summary":"Attackers can cause memory exhaustion and denial of service in Python applications using asyncio protocols with writelines() on Linux or macOS.","url":"https://insights.sbomify.com/CVE-2024-12254/"}