{"id":"CVE-2022-24801","published":"2022-04-04T17:25:10Z","modified":"2025-04-23T18:42:04Z","title":"HTTP Request Smuggling in twisted.web","vendor":"twisted","product":"twisted","tier":"tail","description":{"text":"Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to version 22.4.0rc1, the Twisted Web HTTP 1.1 server, located in the `twisted.web.http` module, parsed several HTTP request constructs more leniently than permitted by RFC 7230. This non-conformant parsing can lead to desync if requests pass through multiple HTTP parsers, potentially resulting in HTTP request smuggling. Users who may be affected use Twisted Web's HTTP 1.1 server and/or proxy and also pass requests through a different HTTP server and/or proxy. The Twisted Web client is not affected. The HTTP 2.0 server uses a different parser, so it is not affected. The issue has been addressed in Twisted 22.4.0rc1. Two workarounds are available: Ensure any vulnerabilities in upstream proxies have been addressed, such as by upgrading them; or filter malformed requests by other means, such as configuration of an upstream proxy.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.028,"percentile":0.86806,"provenance":"source"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-c2jg-hw38-jrqq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac","tags":["x_refsource_MISC"]},{"url":"https://github.com/twisted/twisted/releases/tag/twisted-22.4.0rc1","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00003.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":17.36},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"twisted","affectedVersions":[{"vendor":"twisted","product":"twisted","versions":["<= 22.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:54:49.780870Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Twisted","vulnerableRanges":["<22.4.0"],"patched":["22.4.0"],"from":["GHSA-c2jg-hw38-jrqq","PYSEC-2022-195"],"provenance":"source"}],"summary":{"text":"Twisted's HTTP 1.1 server in the twisted.web.http module (Twisted, prior to 22.4.0rc1) parses several HTTP request constructs more leniently than RFC 7230 permits, creating a request-parsing inconsistency. An unauthenticated remote attacker able to send requests through a deployment that also passes traffic through a different HTTP server or proxy can exploit this desync to smuggle requests, provided the Twisted Web HTTP 1.1 server or proxy is in use (the HTTP 2.0 server and the Twisted Web client are not affected).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:25Z"},"euvd":{"id":"EUVD-2022-0345","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-twisted-cve-2020-10108","parents":[{"from":"CVE-2020-10108","to":"CVE-2022-24801","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/twisted/web/http.py"],"commits":["https://github.com/twisted/twisted/commit/4a7d22e490bb8ff836892cc99a1f54b85ccb0281","https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac"],"basis":"shared function","functions":["headerReceived"]}]},{"from":"CVE-2020-10109","to":"CVE-2022-24801","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/twisted/web/http.py"],"commits":["https://github.com/twisted/twisted/commit/4a7d22e490bb8ff836892cc99a1f54b85ccb0281","https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac"],"basis":"shared function","functions":["headerReceived"]}]}],"children":[{"from":"CVE-2022-24801","to":"CVE-2024-41671","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/twisted/web/http.py"],"commits":["https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac","https://github.com/twisted/twisted/commit/046a164f89a0f08d3239ecebd750360f8914df33","https://github.com/twisted/twisted/commit/4a930de12fb67e88fefcb8822104152f42b27abc"],"basis":"shared function","functions":["lineReceived"]}]}],"packageHistory":[{"cve":"CVE-2020-10108","published":"2020-03-12","fixed":"20.3.0","kev":false},{"cve":"CVE-2020-10109","published":"2020-03-12","fixed":"20.3.0","kev":false},{"cve":"CVE-2022-21712","published":"2022-02-07","fixed":"22.1.0","kev":false,"link":{"from":"CVE-2022-21712","to":"CVE-2022-24801","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Twisted","fromFixed":"22.1.0","toFixed":"22.4.0","daysApart":56}]}},{"cve":"CVE-2022-24801","published":"2022-04-04","fixed":"22.4.0","kev":false},{"cve":"CVE-2022-39348","published":"2022-10-26","fixed":"22.10.0rc1","kev":false,"link":{"from":"CVE-2022-24801","to":"CVE-2022-39348","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Twisted","fromFixed":"22.4.0","toFixed":"22.10.0rc1","daysApart":205}]}},{"cve":"CVE-2023-46137","published":"2023-10-25","fixed":"23.10.0rc1","kev":false},{"cve":"CVE-2026-42304","published":"2026-05-13","fixed":"26.4.0","kev":false}],"package":"PyPI:Twisted"}}