CVE-2022-24801
HTTP Request Smuggling in twisted.web
Reported by github_m · Published April 4, 2022
Twisted is fixed in 592217e951363d60e9cd99c5bbfd23d4615043ac and 22.4.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Twisted | PyPI | 592217e951363d60e9cd99c5bbfd23d4615043ac, 22.4.0 |
| python3-twisted+tls | Amazon Linux | 22.4.0-124.amzn2023.0.2 |
| python-twisted-web | Amazon Linux | 12.1.0-8.amzn2 |
| twisted | twisted | 22.4.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| twisted | twisted | <= 22.2.0 |
| amazon:2023 | python3-twisted+tls | 0 |
| arch | python-twisted | * |
| amazon:2 | python-twisted-web | 0 |
| PyPI | Twisted | 0 |
| alpine | py3-twisted | 0 |
| twisted | twisted | 0 |
| amazon:2023 | python3-twisted | 0 |
Timeline
- Apr 4, 2022 CVE Published
- Apr 4, 2022 PoC Published
- Apr 5, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (6 in total, the first dated here)
- Jul 2, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-24801
vulnetix vdb fixes CVE-2022-24801
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24801/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20220503 [SECURITY] [DLA 2991-1] twisted security update mailing-listx_refsource_MLIST
- FEDORA-2022-71b66d4747 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-9a489fa494 vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2022-24801 advisory
- https://github.com/advisories/GHSA-c2jg-hw38-jrqq advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-195.yaml advisory
- https://github.com/twisted/twisted url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6 url