# CVE-2024-12254: Unbounded memory buffering in SelectorSocketTransport.writelines()

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.12.9, 3.13.2, 3.14.0a3 (CNA); fix release not confirmed
- Status: published
- Published: 2024-12-06 · Modified: 2026-07-31
- Aliases: ALPINE-CVE-2024-12254, SUSE-SU-2024:4291-1, UBUNTU-CVE-2024-12254, USN-7219-1, DEBIAN-CVE-2024-12254, CGA-7rrv-3g42-jvxx, CGA-ggv7-6g36-j69x, CGA-hj5f-wf32-ph23, CGA-mx65-224q-363p, openSUSE-SU-2024:14581-1, openSUSE-SU-2025:14691-1, openSUSE-SU-2025:14998-1
- Record: https://cvemate.com/vulnerability/CVE-2024-12254 · JSON: https://cvemate.com/vulnerability/CVE-2024-12254/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 1.868%, percentile 80.042%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine python3 (Alpine Linux): \< 3.12.8-r1
- chainguard python-3.12 (Chainguard): \< 3.12.8-r1
- chainguard python-3.13 (Chainguard): \< 3.13.1-r1
- wolfi python-3.12 (Wolfi): \< 3.12.8-r1
- wolfi python-3.13 (Wolfi): \< 3.13.1-r1
- debian python3.13 (Debian): \< 3.13.1-2
- ubuntu python3.12 (Ubuntu): \< 3.12.3-1ubuntu0.4
- python software foundation cpython: \< 3.12.9 \| ≥ 3.13.0, \< 3.13.2 \| ≥ 3.14.0a1, \< 3.14.0a3
- opensuse python-aiohttp&distro=openSUSE Tumbleweed (openSUSE): \< 3.11.16-1.1
- opensuse python312-core&distro=openSUSE Leap 15.6 (openSUSE): \< 3.12.8-150600.3.12.1
- opensuse python312-documentation&distro=openSUSE Leap 15.6 (openSUSE): \< 3.12.8-150600.3.12.1
- opensuse python312&distro=openSUSE Leap 15.6 (openSUSE): \< 3.12.8-150600.3.12.1
- opensuse python312&distro=openSUSE Tumbleweed (openSUSE): \< 3.12.8-1.1
- opensuse python313&distro=openSUSE Tumbleweed (openSUSE): \< 3.13.1-1.1
- suse python312-core&distro=SUSE Linux Enterprise Module for Python 3 15 SP6 (SUSE Linux Enterprise): \< 3.12.8-150600.3.12.1
- suse python312&distro=SUSE Linux Enterprise Module for Python 3 15 SP6 (SUSE Linux Enterprise): \< 3.12.8-150600.3.12.1

## References (first 20 of 22)

- <https://github.com/python/cpython/issues/127655>
- <https://github.com/python/cpython/pull/127656>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/>
- <https://github.com/python/cpython/commit/71e8429ac8e2adc10084ab5ec29a62f4b6671a82>
- <https://github.com/python/cpython/commit/9aa0deb2eef2655a1029ba228527b152353135b5>
- <https://github.com/python/cpython/commit/e991ac8f2037d78140e417cc9a9486223eb3e786>
- <http://www.openwall.com/lists/oss-security/2024/12/06/1>
- <https://security.netapp.com/advisory/ntap-20250404-0010/>
- <https://security.alpinelinux.org/vuln/CVE-2024-12254>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20244291-1/>
- <https://bugzilla.suse.com/1231795>
- <https://bugzilla.suse.com/1234290>
- <https://www.suse.com/security/cve/CVE-2024-12254>
- <https://ubuntu.com/security/CVE-2024-12254>
- <https://www.cve.org/CVERecord?id=CVE-2024-12254>
- <https://ubuntu.com/security/notices/USN-7219-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-12254>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12254.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12254>
- <https://github.com/python/cpython>

---

Data as of 2026-12-05T09:20:04.172Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
