Tornado Path Traversal and Cookie Injection Flaws
2026-11-08
Tornado before 6.6 can be induced to hash files outside its configured static_path when an application passes attacker-controlled input to RequestHandler.static_url(), StaticFileHandler.make_static_url(), or get_version(), leaking SHA-512 digests that confirm file existence and allowing a denial of service by hashing /dev/zero indefinitely and blocking the event loop. Only applications that pass request-derived values to these APIs are exposed; standard template use with fixed asset names and requests served directly by StaticFileHandler are not affected. The flaw is fixed in Tornado 6.6.0, and no public exploit was identified at time of analysis.
Cookie attribute injection in the Tornado Python web framework before 6.6 affects applications that pass attacker-influenced input as the max_age argument of RequestHandler.set_cookie - or of set_signed_cookie, set_secure_cookie, and clear_cookie, which call it - letting an attacker append extra Set-Cookie attributes such as Domain, Path or Secure to widen the cookie's scope to parent paths or other subdomains. Because exposure depends entirely on that specific insecure coding pattern, applications that pass an integer or an int()-converted value are unaffected, and the resulting impact is limited to cookie-scope manipulation (low confidentiality and integrity impact, no availability impact). No public exploit code or active exploitation was identified at time of analysis, and the vendor released a fix in Tornado 6.6.