CVE-2023-46136
Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
描述
Werkzeug is a comprehensive WSGI web application library. In versions on the 3.x branch prior to 3.0.1 and on the 2.x branch prior to 2.3.8, if an upload of a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. This vulnerability has been patched in version 3.0.1 and 2.3.8.
如何修補 CVE-2023-46136
要修補 CVE-2023-46136,請將受影響套件升級到下列已修補版本。
- —升級至 2.3.7-r0 或更新版本
- —升級至 2.2.2-3+deb12u1 或更新版本
- —升級至 3.0.1 或更新版本
- —升級至 f3c803b3ade485a45f12b6d6617595350c0f03e2 或更新版本
CVE-2023-46136 正在被利用嗎?
低 — EPSS 為 1.1%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- from 0, < 2.3.7-r0
- from 0, < 2.2.2-3+deb12u1
- >= 3.0.0, < 3.0.1
- from 0, < f3c803b3ade485a45f12b6d6617595350c0f03e2, < f2300208d5e2a5076cbbb4c2aad71096fd040ef9 | from 0, < 2.3.8, >= 3.0.0, < 3.0.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.7 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |