CVE-2024-12254
published high CVSS 4.0 · 8.7Unbounded memory buffering in SelectorSocketTransport.writelines()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.12.9 · 3.13.0 to < 3.13.2 · 3.14.0a1 to < 3.14.0a3 · Other versions: unaffected · Platforms: MacOS, Linux | Affected | Not stated | PSF |
| python_software_foundation | — | cpython3.12.0 to < 3.14.0a1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-808 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | python3.12 | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| Alpine Linux | edge | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Oracle Linux | 8 | python3.12aarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | python3.12aarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| AlmaLinux | 8 | python3.12-debug | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-devel | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-idle | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-libs | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-rpm-macros | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-test | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 8 | python3.12-tkinter | Advisory build | 3.12.8-1.el8_10 | ALSA-2024:10980 |
| AlmaLinux | 9 | python3.12 | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-debug | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-devel | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-idle | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-libs | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-test | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| AlmaLinux | 9 | python3.12-tkinter | Advisory build | 3.12.5-2.el9_5.2 | ALSA-2024:10978 |
| Alpine Linux | v3.20 | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Alpine Linux | v3.21 | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Alpine Linux | v3.22 | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Alpine Linux | v3.23 | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Alpine Linux | v3.24 | python3 | Fixed | 3.12.8-r1 | Package fix record |
| Oracle Linux | 8 | python3.12x86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-debugaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-debugx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-develaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-develx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-idleaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-idlex86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-libsaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-libsx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-rpm-macrosaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-rpm-macrosx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-testaarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-testx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-tkinteraarch64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 8 | python3.12-tkinterx86_64 | Advisory build | 0:3.12.8-1.el8_10 | ELSA-2024-10980 |
| Oracle Linux | 9 | python3.12aarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12x86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-debugaarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-debugx86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-develaarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-develx86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-idleaarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-idlex86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-libsaarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-libsx86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-testaarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-testx86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-tkinteraarch64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Oracle Linux | 9 | python3.12-tkinterx86_64 | Advisory build | 0:3.12.5-2.el9_5.2 | ELSA-2024-10978 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12i686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12ppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12s390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12src | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12x86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugi686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugs390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugx86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debuginfoaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debuginfoi686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debuginfoppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debuginfos390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debuginfox86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugsourceaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugsourcei686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugsourceppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugsources390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-debugsourcex86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-develaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-develi686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-develppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-devels390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-develx86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-idleaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-idlei686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-idleppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-idles390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-idlex86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-libsaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-libsi686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-libsppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-libss390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-libsx86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-rpm-macrosnoarch | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-testaarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-testi686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-testppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tests390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-testx86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tkinteraarch64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tkinteri686 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tkinterppc64le | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tkinters390x | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-8 | python3.12-tkinterx86_64 | Advisory build | 3.12.8-1.el8_10 | RHSA-2024:10980 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12aarch64 | Advisory build | 3.12.1-4.el9_4.5 | RHSA-2024:11035 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12aarch64 | Advisory build | 3.12.5-2.el9_5.2 | RHSA-2024:10978 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.12.9 (affected · python)3.13.0 to < 3.13.2 (affected · python)3.14.0a1 to < 3.14.0a3 (affected · python)Default: unaffected | PSF · cna |
| python_software_foundation | cpython | 3.12.0 to < 3.14.0a1 (affected · python)Default: unknown | CISA-ADP · adp |
Weaknesses
3- CWE-400 CWE-400 Uncontrolled Resource Consumption
- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
References
8- http://www.openwall.com/lists/oss-security/2024/12/06/1
- 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/
- https://security.netapp.com/advisory/ntap-20250404-0010/
Provider assertions
3PSF · cna
Unbounded memory buffering in SelectorSocketTransport.writelines()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c6be451b80cddc74f5ffdd998529d1176c44a480a7fc47f2372c49d071e0e3a2
- Ingested
- 23 Sep 2026, 08:17:21 UTC
- Source record
- Official CVE record