Miggo Logo

CVE-2012-2374:
Tornado CRLF injection vulnerability

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.55309%
Published
5/17/2022
Updated
11/18/2024
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
tornadopip< 2.2.12.2.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*RL* inj**tion vuln*r**ility in t** `torn**o.w**.R*qu*st**n*l*r.s*t_*****r` *un*tion in Torn**o ***or* *.*.* *llows r*mot* *tt**k*rs to inj**t *r*itr*ry *TTP *****rs *n* *on*u*t *TTP r*spons* splittin* *tt**ks vi* *r**t** input.

Reasoning

T** *V* *xpli*itly i**nti*i*s torn**o.w**.R*qu*st**n*l*r.s*t_*****r *s t** vuln*r**l* *un*tion. T** *it*u* *ommit s*ows t** *ix o**urr** in t** _*onv*rt_*****r_v*lu* **lp*r m*t*o* (**ll** *y s*t_*****r), w**r* t** r***x ****k w*s ***n*** *rom r*.m*t*