XSS in Twisted
CVE-2022-39348
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.013 (69.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 69th percentile — 69.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.012 · newest: 0.013 · change: +0.000
Affected products
- Twisted — versions >= 0.9.4, < 22.10.0rc1
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647 (Exploit, Patch, Third Party Advisory)
- github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b (Patch)
- github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4 (Patch)
- lists.debian.org/debian-lts-announce/2022/11/msg00038.html (mailing-list, Mailing List, Third Party Advisory)
- security.gentoo.org/glsa/202301-02 (vendor-advisory, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2022-39348?
- CVE-2022-39348 is a medium-severity vulnerability in Twisted, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-10-26.
- How severe is CVE-2022-39348?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2022-39348 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.