The vulnerability is a quadratic-time (O(n²)) denial-of-service in Tornado's HTTP header parser when handling "obsolete line folding" (obs-fold) continuation lines. The root cause is in HTTPHeaders.parse_line (tornado/httputil.py): in the vulnerable version, when a header line began with whitespace, it was treated as a continuation of the previous header, and the code performed self._as_list[self._last_key][-1] += new_part. Because Python string concatenation copies the entire accumulated string each time, a header value continued across N short lines costs O(N²) total work. An unauthenticated attacker can craft a request whose header block is mostly short continuation lines, causing the IOLoop thread to spend excessive CPU and block all other connections.
The fix (commit 1b7a1dc9f340f52de929852e8125aa12f25297c9) removes line-folding support entirely: parse_line now raises HTTPInputError for any line starting with whitespace, and the _last_key state tracking in add() was removed. The vulnerable functions are those that existed before the fix and participated in the quadratic accumulation: HTTPHeaders.parse_line (the direct source of the O(n²) concatenation), HTTPHeaders.add (which maintained _last_key), HTTPHeaders.parse (the entry point that feeds lines into parse_line), and HTTP1Connection._read_message_inner (the async method that reads the raw header block and invokes header parsing on the IOLoop thread). Per the profiler convention for Python, these are reported as Class.method names without module paths.