CVE-2022-39348

Twisted vulnerable to NameVirtualHost Host header injection

Published Oct 26, 2022 CVSS 3.1 · 5.4 Medium EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3212-1 twisted security update
Debian DLA Debian DLA DLA-3970-1 twisted security update
EUVD EUVD EUVD-2022-7164 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.
Github GHSA Github GHSA GHSA-vg46-2rrj-3647 Twisted vulnerable to NameVirtualHost Host header injection
Ubuntu USN Ubuntu USN USN-6575-1 Twisted vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Twisted
Twisted twisted
CPEs cpe:2.3:a:twistedmatrix:twisted:*:*:*:*:*:*:*:* cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*
Vendors & Products Twistedmatrix
Twistedmatrix twisted
Twisted
Twisted twisted
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:46 PM
Reserved
Sep 2, 2022, 12:00 AM
Status
Modified
Published
Oct 26, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:58 AM
Severity
Low
Public date
Oct 26, 2022, 12:00 AM