Description
Tornado before 6.6 does not validate the max_age argument of RequestHandler.set_cookie (also called by set_signed_cookie, set_secure_cookie, and clear_cookie), allowing injection of additional Set-Cookie attributes. When an application passes attacker-influenced input as max_age, an attacker can embed attributes such as Domain, Path, or Secure to widen the cookie's scope to parent paths or other subdomains.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| tornadoweb | tornado | < 6.6 | 6.6 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-tornado | No fix yet | — |
| Debian 13 | python-tornado | No fix yet | — |
| Debian 12 | python-tornado | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-tornado | No fix yet | — |
| Ubuntu 26.04 LTS | python-tornado | No fix yet | — |
| Ubuntu 24.04 LTS | python-tornado | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | python-tornado | No fix yet | — |
| Ubuntu Pro 20.04 LTS | python-tornado | No fix yet | — |
| Ubuntu Pro 18.04 LTS | python-tornado | No fix yet | — |
| Ubuntu Pro 16.04 LTS | python-tornado | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-tornado | No fix yet | — |
References
- GitHub Security Advisory (GHSA-c6v4-qj2h-f748) vendor-advisory
- VulnCheck Advisory: Tornado before 6.6 Cookie Attribute Injection via set_cookie max_age third-party-advisory