Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify app passing untrusted max_age
-
DeliveryCraft max_age with appended attributes
-
ExploitSubmit value to vulnerable endpoint
-
ExecutionServer emits Set-Cookie with injected Domain/Path
-
ImpactCookie scope widened across subdomains
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires the application to pass an attacker-influenced value as the max_age argument to set_cookie (or set_signed_cookie, set_secure_cookie, or clear_cookie) WITHOUT first converting it to an integer - for example set_cookie("sid", value, max_age="86400; Domain=example.com"). This is the exact prerequisite: applications that pass an integer or an int()-converted value are NOT affected, and no other set_cookie argument is affected. Limiting factors: the vulnerability is confined to this specific insecure coding pattern (not default Tornado usage), the impact is limited to injecting cookie attributes (Domain/Path/Secure) to widen cookie scope, and per CVSS AT:P/UI:P the attack depends on an application-side precondition and passive victim interaction rather than fully attacker-controlled conditions. |
| Impact | This is a genuinely low-priority issue despite being network-reachable, and the signals are consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P) yields a score of only 2.3, and vuln.today assigns the 'monitor' decision label - the lowest urgency tier. There is no CISA KEV listing and no confirmed public exploit in the input, so this is not under active exploitation. The critical limiter is AT:P (attack requirement present) combined with the advisory text: exploitation is possible ONLY in applications that pass attacker-influenced input directly as the max_age argument of set_cookie without an int() conversion - an uncommon and insecure coding pattern, not a default Tornado behavior. The real-world impact is also bounded (VC:L/VI:L, no availability or subsequent-system impact): the attacker can widen a cookie's scope via injected Domain/Path/Secure attributes, which could aid cookie fixation or cross-subdomain scope abuse, but does not directly grant code execution or data disclosure. No signals conflict here; rather, every signal (low CVSS, no KEV, no confirmed PoC, 'monitor' label, conditional trigger) points the same way: a real but low-severity defense-in-depth gap, not an emergency. |
| Exploit ScenarioDerived | A Tornado application takes a user- or request-derived value and passes it straight into set_cookie as the max_age argument without converting it to an integer (e.g. set_cookie("sid", value, max_age="86400; Domain=example.com")). The attacker supplies a crafted max_age string that terminates the numeric value and appends extra Set-Cookie attributes, causing the browser to scope the cookie to a parent path or sibling subdomain the application did not intend. No public exploit code is identified in the sources; the advisory provides only an illustrative payload, and success depends entirely on the application already mishandling untrusted input as max_age. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
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.
RemediationAI
Vendor-released patch: Tornado 6.6.0, in which max_age is converted with int() so non-numeric values raise an exception instead of reaching the header; upgrade the pip/tornado dependency to 6.6.0 per the GitHub advisory (https://github.com/tornadoweb/tornado/security/advisories/GHSA-c6v4-qj2h-f748). Where an immediate upgrade is not possible, the vendor's stated workaround is to convert max_age to an integer with int() before calling set_cookie (or set_signed_cookie, set_secure_cookie, clear_cookie); the trade-off is that this must be applied at every call site that accepts externally derived input, and it will also cause malformed non-numeric values to raise at that point rather than being silently written. No other compensating controls are specified by the vendor, and the vendor's fix is the complete remediation; the practical way to scope effort is to audit code for max_age values that originate from request data, since applications passing integers or int()-converted values are not affected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Tornado is a Python web framework and asynchronous networking library whose RequestHandler.set_cookie constructs the Set-Cookie response header from its arguments; set_signed_cookie and set_secure_cookie add signing/encryption on top of the same code path, and clear_cookie invokes it to expire a cookie. Prior hardening in Tornado 6.5.5 and 6.5.8 validated the other set_cookie arguments but omitted max_age, so a string value containing a semicolon and further attribute text is written verbatim into the Max-Age position and parsed by the browser as additional cookie attributes. The root cause is neutralization of special elements in generated output (CWE-74), with the vendor advisory also classifying it as CWE-113 (improper neutralization of CRLF sequences in HTTP headers, i.e. header/attribute injection). This is not a memory-safety issue and not exploitable against default or integer-valued usage: the exact prerequisite is an application that interpolates untrusted input into max_age without an int() conversion, as in set_cookie("sid", value, max_age="86400; Domain=example.com"). The assessed CVSS:3.1 vector (AV:N/AC:H/PR:N/UI:R, C:L/I:L/A:N) reflects that the attacker cannot control the precondition - the flaw only manifests through an application-side coding mistake plus a victim's browser processing the crafted header - and the trigger details beyond that pattern are as described in the vendor advisory, not inferred.
Know when Tornado gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
AC:H because exploitation depends on the application insecurely passing untrusted input as max_age; PR:N as the attacker needs no authentication; C:L/I:L for limited cookie-scope abuse, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Related Vulnerabilities in Tornado Path Traversal and Cookie Injection Flaws
View all 2An issue in Docmosis Tornado v.2.9.7 and before allows a remote attacker to execute arbitrary code via a crafted script
An issue was discovered in Docmosis Tornado prior to version 2.9.5. Rated high severity (CVSS 8.8), this vulnerability i
py3-tornado in Alpine Linux received a security fix packaged as version 6.5.4-r0, addressing an unspecified vulnerabilit
Docmosis Tornado <= 2.9.4 is vulnerable to Directory Traversal leading to the disclosure of arbitrary content on the fil
An issue was discovered in Docmosis Tornado prior to version 2.9.5. Rated high severity (CVSS 7.5), this vulnerability i
Tornado's HTTP/1.x header parser consumes quadratic CPU time when a header value is spread across many obsolete line-fol
Denial of service in the Tornado web framework's CurlAsyncHTTPClient (all releases before 6.5.9) lets an unauthenticated
In versions of Tornado prior to 6.5.5, the only limit on the number of parts in `multipart/form-data` is the `max_body_s
Memory amplification denial of service in the Tornado Python web framework before 6.5.8 lets unauthenticated remote atta
Credential leakage in Tornado's CurlAsyncHTTPClient (all releases through 6.5.6) lets sensitive per-request state — clie
Unauthenticated local file disclosure in Tornado before 6.5.9 lets remote attackers read files outside a configured stat
EUVD-2026-119420
GHSA-cfc4-jgx9-vvjh
NVD
CVE.org
EPSS
Exploit-DB