HTTP Request Smuggling in twisted.web
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 6 fixed, 6 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| twisted | twisted | up to 22.2.0 | — | No fix listed | CNA |
| — | Twisted (PyPI) | before 22.4.0 | 22.4.0 | Patch available | GHSA-c2jg-hw38-jrqq |
- twisted Vendortwisted Affected up to 22.2.0 Fixed in — No fix listed CNA
- Twisted (PyPI) Vendor— Affected before 22.4.0 Fixed in 22.4.0 Patch available GHSA-c2jg-hw38-jrqq
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* | before 22.4.0 | Vulnerable | twisted |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* | 8.8 | Vulnerable | Oracle |
- cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:* Versions before 22.4.0 Vulnerable ·twisted
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* Versions 8.8 Vulnerable ·Oracle
Remediation
- Fix · GHSA-c2jg-hw38-jrqq Twisted (PyPI) Fixed in 22.4.0 Advisory →
Red Hat 3 advisories
- RHSA-2022:4930 Released 2022-06-07 · Red Hat rating Importantpython-twisted-web security update
- Red Hat Enterprise Linux Client Optional (v. 7) python-twisted-web-12.1.0-8.el7_9
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-twisted-web-12.1.0-8.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7) python-twisted-web-12.1.0-8.el7_9
- Red Hat Enterprise Linux Workstation Optional (v. 7) python-twisted-web-12.1.0-8.el7_9
- RHSA-2022:1646 Released 2022-04-29 · Red Hat rating ImportantRed Hat OpenStack Platform 16.1 (python-twisted) security update
- Red Hat OpenStack Platform 16.1 python-twisted-16.4.1-20.el8ost, python3-twisted-16.4.1-20.el8ost
- RHSA-2022:1645 Released 2022-04-29 · Red Hat rating ImportantRed Hat OpenStack Platform 16.2 (python-twisted) security update
- Red Hat OpenStack Platform 16.2 python-twisted-16.4.1-20.el8ost, python3-twisted-16.4.1-20.el8ost
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 2 | Affected | No fix planned: Out of support scope |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Service Telemetry Framework 1.3 for RHEL 8 | Affected | No fix yet |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2022:4930 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2022:4930 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2022:4930 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2022:4930 |
| Red Hat OpenStack Platform 16.1 | Fixed | RHSA-2022:1646 |
| Red Hat OpenStack Platform 16.2 | Fixed | RHSA-2022:1645 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24801
- 2026-10-03 Alias added: GHSA-c2jg-hw38-jrqq
References
Patch 2
Advisory 6
- https://github.com/twisted/twisted/security/advisories/GHSA-c2jg-hw38-jrqq
- https://github.com/twisted/twisted/releases/tag/twisted-22.4.0rc1
- [debian-lts-announce] 20220503 [SECURITY] [DLA 2991-1] twisted security update
- FEDORA-2022-71b66d4747
- FEDORA-2022-9a489fa494
- https://nvd.nist.gov/vuln/detail/CVE-2022-24801
Other 6
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-195.yaml
- https://github.com/twisted/twisted
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6
More Twisted vulnerabilities
- TI-2026-30612 Twisted: Denial of Service (DoS) in twisted.names via Crafted DNS Compression Pointer Chains CVSS 3.1HIGH 7.5
- TI-2022-06090 Buffer Overflow in Twisted CVSS 3.1HIGH 7.5
- TI-2024-27854 HTML injection in HTTP redirect body CVSS 3.1MEDIUM 6.1
- TI-2022-18723 Twisted vulnerable to NameVirtualHost Host header injection CVSS 3.1MEDIUM 5.4
- TI-2020-08165 In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. CVSS 3.1CRITICAL 9.8
- TI-2020-08166 In Twisted Web through 19.10.0, there was an HTTP request splitting vulnerability. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-24801 · CVE Program
- CVE-2022-24801 · NVD
- FIRST EPSS
- GHSA-c2jg-hw38-jrqq · GitHub Advisory Database · CC BY 4.0
- CVE-2022-24801 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences