CVE-2022-39348
Twisted vulnerable to NameVirtualHost Host header injection
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.6% · top 24% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPITwistedGHSA-vg46-2rrj-3647 (opens in a new tab)
References (6)
- https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647 (opens in a new tab)x_transferred
- https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b (opens in a new tab)x_transferred
- https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4 (opens in a new tab)x_transferred
- [debian-lts-announce] 20221128 [SECURITY] [DLA 3212-1] twisted security update (opens in a new tab)mailing-listx_transferred
- GLSA-202301-02 (opens in a new tab)vendor-advisoryx_transferred
- https://lists.debian.org/debian-lts-announce/2024/11/msg00028.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-vg46-2rrj-3647 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-39348)Record last updated .