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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.04% (percentile 82, 2026-11-26)
- **CWE:** CWE-444
- **Aliases:** GHSA-c2jg-hw38-jrqq, PYSEC-2022-195
- **Published:** 2022-04-04T17:25:10.000Z
- **Modified:** 2026-06-17T04:32:33.010Z

## Who should check

- Projects that depend on PyPI package twisted (\< 22.4.0)
- Anyone running twisted \<= 22.2.0

## Description

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.

## Affected and fixed versions

- PyPI `twisted`: affected \< 22.4.0; fixed 22.4.0 (osv)
- twisted: \<= 22.2.0 (cvelist)

## Mitigation

- Upgrade twisted to 22.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-24801. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24801.md
Affected: twisted < 22.4.0
Fixed in: 22.4.0

Steps:
1. Search this machine and project for twisted (PyPI), twisted: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-24801 being exploited?

There is no confirmed exploitation: CVE-2022-24801 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.04% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-24801?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-24801?

twisted \< 22.4.0.

### Is there a fix for CVE-2022-24801?

Yes. Fixed in 22.4.0. Upgrade twisted to 22.4.0 or later.

### How do I check if I'm affected by CVE-2022-24801?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/twisted/twisted/security/advisories/GHSA-c2jg-hw38-jrqq>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-24801>
- patch: <https://github.com/twisted/twisted/commit/592217e951363d60e9cd99c5bbfd23d4615043ac>
- patch: <https://www.oracle.com/security-alerts/cpujul2022.html>
- other: <https://github.com/twisted/twisted/releases/tag/twisted-22.4.0rc1>
- other: <https://lists.debian.org/debian-lts-announce/2022/05/msg00003.html>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/twisted/PYSEC-2022-195.yaml>
- other: <https://github.com/twisted/twisted>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2WRYLFBD2YW5K>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKWYHPHGGNKMAG6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24801>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c2jg-hw38-jrqq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2022-195> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-24801> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24801>
