CVEfocus › CVE database › CVE-2022-24801

CVE-2022-24801HTTP Request Smuggling in twisted.web

CVSS 8.1 HighEPSS 2.0% (higher than 82% of CVEs)Published 2022-04-04Updated 2025-04-23Assigner: GitHub_M

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.

CWE-444

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

14Fixed
2Fix pending
3Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04twistedFixed22.1.0-2ubuntu2.3UBUNTU-CVE-2022-24801
Ubuntu 20.04twistedWill 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.04twistedFix pendingUBUNTU-CVE-2022-24801
Ubuntu 16.04twistedWill 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.04twistedFix pendingUBUNTU-CVE-2022-24801
Debian 14twistedFixed22.4.0-1DEBIAN-CVE-2022-24801
Debian 13twistedFixed22.4.0-1DEBIAN-CVE-2022-24801
Debian 12twistedFixed22.4.0-1DEBIAN-CVE-2022-24801
Red Hat Enterprise Linux 7python-twisted-webFixed0:12.1.0-8.el7_9RHSA-2022:4930
Red Hat Enterprise Linux 6python-twistedWill not fix
Out of support scope
Alpine Linux 3.24py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.23py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.22py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.21py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.20py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.19py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.18py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
Alpine Linux 3.17py3-twistedFixed22.4.0-r0ALPINE-CVE-2022-24801
PyPI librarytwistedFixed22.4.0GHSA-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.

Vendor advisories:

References

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.