CVEfocus › CVE database › CVE-2022-39348

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

CVSS 5.4 MediumEPSS 1.6% (higher than 76% of CVEs)Published 2022-10-26Updated 2025-11-03Assigner: GitHub_M

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.

CWE-79CWE-80

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
3Fix pending
16Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04twistedNot affected
vulnerable_code_not_present
Ubuntu 25.10twistedNot affected
vulnerable_code_not_present
Ubuntu 24.04twistedNot affected
vulnerable_code_not_present
Ubuntu 22.04twistedFixed22.1.0-2ubuntu2.4UBUNTU-CVE-2022-39348
Ubuntu 20.04twistedFixed18.9.0-11ubuntu0.20.04.3UBUNTU-CVE-2022-39348
Ubuntu 18.04twistedFix pendingUBUNTU-CVE-2022-39348
Ubuntu 16.04twistedFix pendingUBUNTU-CVE-2022-39348
Ubuntu 14.04twistedFix pendingUBUNTU-CVE-2022-39348
Debian 14twistedFixed22.4.0-4DEBIAN-CVE-2022-39348
Debian 13twistedFixed22.4.0-4DEBIAN-CVE-2022-39348
Debian 12twistedFixed22.4.0-4DEBIAN-CVE-2022-39348
Red Hat Enterprise Linux 7python-twisted-coreWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-twisted-core-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-twisted-webWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-twisted-wordsWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twistedWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-conchWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-coreWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-core-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-core-zshWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-loreWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-mailWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-namesWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-newsWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-runnerWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-webWill not fix
Out of support scope
Red Hat Enterprise Linux 6python-twisted-wordsWill not fix
Out of support scope
PyPI librarytwistedFixed22.10.0rc1PYSEC-2026-1055

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.