The vulnerability is a denial of service in python-multipart caused by unbounded parsing of multipart part headers. The advisory states that the MultipartParser class previously had no limits on the number of headers or their size. The patch for this vulnerability, found in commit 3e64f5f8caba0e5d391b0c1ad0f1c2edf9e8f911, directly modifies the MultipartParser._internal_write method. This method implements the low-level state machine for parsing the multipart data stream. The patch adds new parameters, max_header_count and max_header_size, and integrates checks for these limits directly into the header processing logic within the _internal_write function's state machine. When the vulnerability is exploited, it is this _internal_write function that would be stuck in a CPU-intensive loop, processing the malicious headers. Therefore, MultipartParser._internal_write is the precise function that would appear in a runtime profile during an attack, and it is the function that contained the vulnerable logic.