-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.8 (EOL)end of lifeend of life3.9only security fixesonly security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-IOtype-securityA security issueA security issue
Description
When http.server.CGIHTTPRequestHandler
on Windows (and other platforms without fork()
) handles the POST request, it reads the whole body of the POST request in memory before sending it to the subprocess running the script. The underlying SocketIO allocates the amount of memory specified in the Content-Length
header before actual reading the data, so a small request with incorrect Content-Length
can cause consumption of the large amount of memory and CPU time and can be used in the DOS attack on the server.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.8 (EOL)end of lifeend of life3.9only security fixesonly security fixesstdlibPython modules in the Lib dirPython modules in the Lib dirtopic-IOtype-securityA security issueA security issue