Description
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.
Product status
Any version before 3.14.1
3.15.0a1 (python) before 3.15.0
References
github.com/python/cpython/issues/119451
github.com/python/cpython/pull/119454
github.com/...ommit/4ce27904b597c77d74dd93f2c912676021a99155
github.com/...ommit/5a4c4a033a4a54481be6870aa1896fad732555b5
mail.python.org/.../thread/OQ6G7MKRQIS3OAREC3HNG3D2DPOU34XO/