{"id":"CVE-2024-12254","published":"2024-12-06T15:19:41Z","modified":"2026-07-31T14:08:25Z","title":"Unbounded memory buffering in SelectorSocketTransport.writelines()","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"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\n\n\n\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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01594,"percentile":0.76034,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/python/cpython/issues/127655","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/127656","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/71e8429ac8e2adc10084ab5ec29a62f4b6671a82","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/9aa0deb2eef2655a1029ba228527b152353135b5","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/e991ac8f2037d78140e417cc9a9486223eb3e786","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2024/12/06/1","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250404-0010/","tags":[]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":15.21},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.12.9",">= 3.13.0, < 3.13.2",">= 3.14.0a1, < 3.14.0a3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-12-06T15:35:11.234951Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-50718","exploited":false,"provenance":"source"}}