Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-hrfv-mqp8-q5rw

Опубликовано: 25 окт. 2023
Источник: github
Github: Прошло ревью
CVSS3: 5.7

Описание

Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning

Werkzeug multipart data parser needs to find a boundary that may be between consecutive chunks. That's why parsing is based on looking for newline characters. Unfortunately, code looking for partial boundary in the buffer is written inefficiently, so if we upload 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. The amount of RAM required can trigger an out of memory kill of the process. If many concurrent requests are sent continuously, this can exhaust or kill all available workers.

Пакеты

Наименование

werkzeug

pip
Затронутые версииВерсия исправления

>= 3.0.0, < 3.0.1

3.0.1

Наименование

werkzeug

pip
Затронутые версииВерсия исправления

< 2.3.8

2.3.8

EPSS

Процентиль: 60%
0.0041
Низкий

5.7 Medium

CVSS3

Дефекты

CWE-400
CWE-787

Связанные уязвимости

CVSS3: 8
ubuntu
больше 1 года назад

Werkzeug is a comprehensive WSGI web application library. 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.

CVSS3: 7.5
redhat
больше 1 года назад

Werkzeug is a comprehensive WSGI web application library. 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.

CVSS3: 8
nvd
больше 1 года назад

Werkzeug is a comprehensive WSGI web application library. 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.

CVSS3: 7.5
msrc
больше 1 года назад

Описание отсутствует

CVSS3: 8
debian
больше 1 года назад

Werkzeug is a comprehensive WSGI web application library. If an upload ...

EPSS

Процентиль: 60%
0.0041
Низкий

5.7 Medium

CVSS3

Дефекты

CWE-400
CWE-787