CVE-2022-24801HTTP Request Smuggling in twisted.web
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | twisted | Fixed | 22.1.0-2ubuntu2.3 | UBUNTU-CVE-2022-24801 |
| Ubuntu 20.04 | twisted | Will not fix For focal and earlier, patch requires backporting major changes to how HTTP packets are buffered and processed which is intrusive and could have high risk of… | UBUNTU-CVE-2022-24801 | |
| Ubuntu 18.04 | twisted | Fix pending | UBUNTU-CVE-2022-24801 | |
| Ubuntu 16.04 | twisted | Will not fix For focal and earlier, patch requires backporting major changes to how HTTP packets are buffered and processed which is intrusive and could have high risk of… | UBUNTU-CVE-2022-24801 | |
| Ubuntu 14.04 | twisted | Fix pending | UBUNTU-CVE-2022-24801 | |
| Debian 14 | twisted | Fixed | 22.4.0-1 | DEBIAN-CVE-2022-24801 |
| Debian 13 | twisted | Fixed | 22.4.0-1 | DEBIAN-CVE-2022-24801 |
| Debian 12 | twisted | Fixed | 22.4.0-1 | DEBIAN-CVE-2022-24801 |
| Red Hat Enterprise Linux 7 | python-twisted-web | Fixed | 0:12.1.0-8.el7_9 | RHSA-2022:4930 |
| Red Hat Enterprise Linux 6 | python-twisted | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.23 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.22 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.21 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.20 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.19 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.18 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| Alpine Linux 3.17 | py3-twisted | Fixed | 22.4.0-r0 | ALPINE-CVE-2022-24801 |
| PyPI library | twisted | Fixed | 22.4.0 | GHSA-c2jg-hw38-jrqq |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- twisted: affected: <= 22.2.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/twisted/twisted/security/advisories/GHSA-c2jg-hw38-jrqq
- https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac
- https://github.com/twisted/twisted/releases/tag/twisted-22.4.0rc1
- https://lists.debian.org/debian-lts-announce/2022/05/msg00003.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/
- https://www.oracle.com/security-alerts/cpujul2022.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.