CVE-2022-39348 | Twisted vulnerable to NameVirtualHost Host header injection

Exp

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.

Published: 2022-10-26 Last update: 2025-11-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-39348 is rated High Exploit Risk (64.3/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.20%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2022-39348

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2022-39348

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-21 1.14% 1.20% +0.06%
2 2026-04-07 1.18% 1.14% -0.04%
3 2026-01-07 1.18%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-39348

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.3 2.7 [email protected]
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.3 2.7 [email protected]

Weakness enumeration for CVE-2022-39348

GitHub Security Advisory for CVE-2022-39348

GHSA-vg46-2rrj-3647 · Severity: medium · Ecosystem: pip — Twisted vulnerable to NameVirtualHost Host header injection

OS Trackers for CVE-2022-39348

vendor priority summary link
debian not yet assigned CVE-2022-39348 not yet assigned priority: Debian including 1 source packages (twisted), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2022-39348
gentoo low CVE-2022-39348: 1 GLSA(s) (202301-02), 1 atom(s) (dev-python/twisted); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-39348
redhat low https://access.redhat.com/security/cve/CVE-2022-39348
suse low CVE-2022-39348 severity low: SUSE including 48 source package names (python-Twisted-15.2.1-9.23.1, python-Twisted-doc-19.10.0-150200.3.18.1, …), 70 product×package rows across 25 product lines (HPE Helion OpenStack 8, Image SLES15-SP3-BYOS-Azure, … (25 product lines)): Fixed 70. https://www.suse.com/security/cve/CVE-2022-39348/
ubuntu low CVE-2022-39348 low priority: Ubuntu including 1 source packages (twisted), 13 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): not-affected 6, released 3, needed 2, ignored 1, needs-triage 1. https://ubuntu.com/security/CVE-2022-39348

Affected software / configurations for CVE-2022-39348

Vendor Product Version Raw CPE
twisted twisted >= 0.9.4, < 22.10.0 cpe:2.3:a:twisted:twisted:*:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

References for CVE-2022-39348

cvelogic Threat Intelligence