]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 1 Dec 2025 12:59:09 +0000 (14:59 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Dec 2025 12:59:09 +0000 (12:59 +0000)
commit29c657a1f231c0908796e0c9ff6967e15ab20d9b
treef4e971a1a3a67d5acffa025944835e1128970842
parentc4054f7aa8aff80f4fed1b6af02c9aec79b14c6f
[3.14] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-119455)

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,
so that the memory consumption is proportional to the amount of sent
data.
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Security/2024-05-23-11-44-41.gh-issue-119452.PRfsSv.rst [new file with mode: 0644]