{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-12254","id":"CVE-2024-12254","title":"Unbounded memory buffering in SelectorSocketTransport.writelines()","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\n\n\n\n\nThis\n vulnerability likely impacts a small number of u","descriptionLong":"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.","published":"2024-12-06T15:19:41.576Z","updated":"2026-11-10T10:45:30.843235329Z","reserved":"2024-12-05T16:17:55.154Z","status":"Deferred","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":8.7,"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","rating":"high","source":"PSF"},"metrics":[{"version":"4.0","score":8.7,"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","rating":"high","source":"PSF"},{"version":"4.0","score":8.7,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"CISA-ADP"}],"rating":"high","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.12.9","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.2","status":"affected","versionType":"python"},{"version":"3.14.0a1","lessThan":"3.14.0a3","status":"affected","versionType":"python"}],"platforms":["MacOS","Linux"]}],"packages":[],"cwes":["CWE-400","CWE-770"],"aliases":["BIT-libpython-2024-12254","BIT-python-2024-12254","BIT-python-min-2024-12254","PSF-2024-14"],"references":[{"url":"https://github.com/python/cpython/issues/127655","tags":["issue-tracking","report"]},{"url":"https://github.com/python/cpython/pull/127656","tags":["patch","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/71e8429ac8e2adc10084ab5ec29a62f4b6671a82","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/9aa0deb2eef2655a1029ba228527b152353135b5","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/e991ac8f2037d78140e417cc9a9486223eb3e786","tags":["patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2024/12/06/1","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20250404-0010/","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12254.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12254","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.01868,"epssPercentile":0.79778,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-12254","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12254","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-12254","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-12254","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}