CVE-2022-39348Twisted vulnerable to NameVirtualHost Host header injection
- 5.4MediumCVSS base score
- 1.6%Exploitation in 30 daysEPSS · top 24% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By GitHub_M
- 54 days later
· 54 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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 (12 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.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPITwistedGHSA-vg46-2rrj-3647 (opens in a new tab)
References
References6
- 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)
- EUVD EUVD-2022-7164 (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://cveledger.app/cve/CVE-2022-39348)Record last updated .