Skip to main content
MEDIUM

CVE-2022-39348

CVSS v3

5.4

MEDIUM

EPSS Score

1.3 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for twisted.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • twistedPyPIfrom 0.9.4 · fixed in 22.10.0rc1

Vendor advisories

  • CVE-2022-39348 Red Hat Product Security35 known affected

    python-twisted: NameVirtualHost Host header injection

    twisted[tls] as a component of Red Hat Ansible Automation Platform 1.2 · twisted[tls] as a component of Red Hat Ansible Automation Platform 2 · python-twisted-core as a component of Red Hat Ceph Storage 3

Full record on NVD

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.

Technical details

Published
2022-10-26

Frequently asked questions

What is 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.

Is CVE-2022-39348 actively exploited?

Active exploitation of CVE-2022-39348 has not been confirmed. Its EPSS score was 1.3% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-39348?

CVE-2022-39348 has a CVSS v3 base score of 5.4 (MEDIUM severity).

Running twisted? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month