CVE-2012-2374:
Tornado CRLF injection vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55309%
CWE
Published
5/17/2022
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tornado | pip | < 2.2.1 | 2.2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The CVE explicitly identifies tornado.web.RequestHandler.set_header as the vulnerable function. The GitHub commit shows the fix occurred in the _convert_header_value helper method (called by set_header), where the regex check was changed from re.match() to re.search() to detect control characters anywhere in the header value. Since set_header is the public API method responsible for header manipulation and directly relied on this flawed validation, it is the primary vulnerable entry point. The test case added in the commit also directly exercises set_header with malicious input, confirming its role in the vulnerability.