Skip to content

[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server#142216

Merged
serhiy-storchaka merged 2 commits intopython:3.14from
serhiy-storchaka:http-server
Dec 5, 2025
Merged

[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server#142216
serhiy-storchaka merged 2 commits intopython:3.14from
serhiy-storchaka:http-server

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 3, 2025

The CGI server on Windows could consume the amount of memory specified in the Content-Length header of the request even if the client does not send such much data. Now it reads the POST request body by chunks, therefore the memory consumption is proportional to the amount of sent data.

Loading
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.

3 participants