VDB

CVE-2022-24801

CVE-2022-24801 PUBLISHED CVSS 8.1 HIGH

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.

PackageEcosystemFixed in
TwistedPyPI592217e951363d60e9cd99c5bbfd23d4615043ac, 22.4.0
python3-twisted+tlsAmazon Linux22.4.0-124.amzn2023.0.2
python-twisted-webAmazon Linux12.1.0-8.amzn2
twistedtwisted22.4.0

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
twistedtwisted<= 22.2.0
amazon:2023python3-twisted+tls0
archpython-twisted*
amazon:2python-twisted-web0
PyPITwisted0
alpinepy3-twisted0
twistedtwisted0
amazon:2023python3-twisted0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›