CVE-2024-12254
Unbounded memory buffering in SelectorSocketTransport.writelines()
描述
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.
如何修補 CVE-2024-12254
要修補 CVE-2024-12254,請將受影響套件升級到下列已修補版本。
- —升級至 3.12.8-r1 或更新版本
- —升級至 3.12.9 或更新版本
- —升級至 3.12.9 或更新版本
- —升級至 3.12.9 或更新版本
- —升級至 3.13.1-2 或更新版本
CVE-2024-12254 正在被利用嗎?
低 — EPSS 為 1.9%,目前沒有觀察到大規模利用活動。
受影響套件(5)
- from 0, < 3.12.8-r1
- >= 3.12.0, < 3.12.9, >= 3.13.0, < 3.13.2
- >= 3.12.0, < 3.12.9, >= 3.13.0, < 3.13.2
- >= 3.12.0, < 3.12.9, >= 3.13.0, < 3.13.2
- from 0, < 3.13.1-2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |