PT-2023-29869 · Werkzeug+4 · Werkzeug+4

Psrok1

·

Publicado

2023-10-24

·

Atualizado

2026-06-03

·

CVE-2023-46136

CVSS v3.1

8.0

Alta

VetorAV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Werkzeug versions prior to 3.0.1
Description The issue is related to the parsing of multipart data in the Werkzeug library. If a file upload starts with CR or LF and is followed by a large amount of data without these characters, the library appends all these bytes chunk by chunk into an internal bytearray and performs a lookup for the boundary in the growing buffer. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it, potentially blocking worker processes from handling legitimate requests due to the amount of CPU time required. Additionally, the amount of RAM required can trigger an out of memory kill of the process, and if many concurrent requests are sent continuously, this can exhaust or kill all available workers.
Recommendations For versions prior to 3.0.1, update to version 3.0.1 to resolve the issue. As a temporary workaround, consider restricting the upload of files that start with CR or LF to minimize the risk of exploitation. Avoid using the multipart data parser with untrusted input until the issue is resolved.

Exploit

Correção

DoS

Memory Corruption

Resource Exhaustion

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

ALT-PU-2023-7835
ALT-PU-2025-3304
AZL-31701
AZL-35141
BDU:2025-03945
CVE-2023-46136
GHSA-HRFV-MQP8-Q5RW
OESA-2025-1996
OESA-2025-1997
OESA-2025-1998
OESA-2025-1999
OESA-2025-2000
OPENSUSE-SU-2023_4288-1
OPENSUSE-SU-2024:13375-1
PYSEC-2023-221
RHSA-2023:7473
RHSA-2023:7477
RHSA-2023:7610
RHSA-2024:0189
RHSA-2024:0214
RHSA-2025:9775
SUSE-SU-2023:4288-1

Produtos afetados

Alt Linux
Astra Linux
Red Os
Suse
Werkzeug