BIT-python-2025-13836: Excessive read buffering DoS in http.client
When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length. This allows a malicious server to cause the client to read large amounts of data into memory, potentially causing OOM or other DoS.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Python's http.client to read HTTP responses are exposed when they connect to a malicious or untrusted server. The issue affects the client side, because the server controls the Content-Length value used when no read amount is specified.
What does an attacker need to do to trigger the denial of service?
An attacker needs to operate or control an HTTP server that the vulnerable client connects to. The server can provide a large Content-Length value, causing the client to read a large amount of response data into memory when no read amount is specified.
What is the practical impact?
Excessive response buffering can consume available memory and potentially cause an out-of-memory condition or another denial of service. The available impact information indicates availability effects, not confidentiality or integrity effects.