Twisted vulnerable to NameVirtualHost Host header injection
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 11 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
Twisted is an event-based framework for internet applications. Started with version 0.9.4, when the host header does not match a configured host `twisted.web.vhost.NameVirtualHost` will return a `NoResource` resource which renders the Host header unescaped into the 404 response allowing HTML and script injection. In practice this should be very difficult to exploit as being able to modify the Host header of a normal HTTP request implies that one is already in a privileged position. This issue was fixed in version 22.10.0rc1. There are no known workarounds.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
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 | 0.9.4 to before 22.10.0rc1 | 22.10.0rc1 | Patch available | CNA |
| — | Twisted (PyPI) | 0.9.4 to before 22.10.0rc1 | 22.10.0rc1 | Patch available | GHSA-vg46-2rrj-3647 |
- twisted Vendortwisted Affected 0.9.4 to before 22.10.0rc1 Fixed in 22.10.0rc1 Patch available CNA
- Twisted (PyPI) Vendor— Affected 0.9.4 to before 22.10.0rc1 Fixed in 22.10.0rc1 Patch available GHSA-vg46-2rrj-3647
Remediation
- Fix · CNA twisted (twisted) Fixed in 22.10.0rc1
- Fix · GHSA-vg46-2rrj-3647 Twisted (PyPI) Fixed in 22.10.0rc1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 16.1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix planned: Will not fix |
| Red Hat Storage 3 | Affected | No fix planned: Out of support scope |
| Service Telemetry Framework 1.3 for RHEL 8 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39348
- 2026-10-03 Alias added: GHSA-vg46-2rrj-3647
References
Patch 2
Advisory 3
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-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
- TI-2022-08614 HTTP Request Smuggling in twisted.web CVSS 3.1HIGH 8.1
Sources
- CVE-2022-39348 · CVE Program
- CVE-2022-39348 · NVD
- FIRST EPSS
- GHSA-vg46-2rrj-3647 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-39348 · 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