Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump werkzeug to 3.0.1 #885

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Bump werkzeug to 3.0.1 #885

merged 1 commit into from
Oct 25, 2023

Conversation

psrok1
Copy link
Member

@psrok1 psrok1 commented Oct 25, 2023

Werkzeug >=2.0.0, <3.0.1 has a bug (in some cases, a security bug) that may result in excessive CPU usage and worker timeout when huge file (usually over 50MB) with specific layout is uploaded to MWDB.

The issue is when uploaded file contents are meaningful/random at the beginning (contain CR/LF bytes) and then are extensively padded with zeroes. This is common file pattern for bloated malware samples and memory dumps, so it may highly affect performance or even cause a denial of service if MWDB is flooded with such file uploads.

References:

Werkzeug >=2.0.0, <3.0.1 has a bug (in some cases, a security bug) that may result in excessive CPU usage and worker timeout when huge file (usually over 50MB) with specific layout is uploaded to MWDB.

The issue is when uploaded file contents are meaningful/random at the beginning (contain CR/LF bytes) and then are extensively padded with zeroes. This is common file pattern for bloated malware samples and memory dumps, so it may highly affect performance or even cause a denial of service if MWDB is flooded with such file uploads.

References:
- https://www.cve.org/CVERecord?id=CVE-2023-46136
- pallets/werkzeug#2801
@psrok1 psrok1 requested a review from msm-code October 25, 2023 11:41
@psrok1 psrok1 merged commit 7c10613 into master Oct 25, 2023
@psrok1 psrok1 deleted the bump/werkzeug-3.0.1 branch October 25, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants