The vulnerability exists in the parse_form function within the python-multipart library. The function's logic for handling the Content-Length header was flawed. Specifically, it would cast the Content-Length value to an integer without validating if it was negative. In Python, reading from a stream with a negative size (e.g., stream.read(-1)) instructs it to read until the end of the stream. An attacker could exploit this by sending a request with a negative Content-Length header, causing the server to read the entire request body into memory at once, which could lead to a denial-of-service condition due to memory exhaustion, especially under concurrent requests. The fix, introduced in commit c814948acf509cef7881fa75c969969b19239bbf, adds a check to ensure the Content-Length is not negative, thus mitigating the vulnerability.