CVE-2022-39348 json
Twisted vulnerable to NameVirtualHost Host header injection
published 4y ago modified 4mo ago also GHSA-vg46-2rrj-3647 , PYSEC-2026-1055 , EUVD-2022-7164
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi twisted 22.10.0rc1
- twisted twisted 22.10.0
- twisted Debian 14, Debian 13, Debian 12 22.4.0-4
debian advisories DEBIAN-CVE-2022-39348
- twisted Ubuntu 20.04 LTS 18.9.0-11ubuntu0.20.04.3
- twisted Ubuntu 22.04 LTS 22.1.0-2ubuntu2.4
ubuntu advisories UBUNTU-CVE-2022-39348
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-Twisted SLE Module for Web and Scripting 12, OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 +3 more 15.2.1-9.23.1
- python-Twisted SLE Module for Server Applications 15 SP3, SLE Module for Package Hub 15 SP3, openSUSE Leap 15.4 +1 more 19.10.0-150200.3.18.1
- python-Twisted SLE Module for Server Applications 15 SP4, openSUSE Leap 15.4 22.2.0-150400.5.7.1
suse advisories SUSE-SU-2022:4074-1SUSE-SU-2022:4057-1SUSE-SU-2022:4000-1
- python-Twisted openSUSE Tumbleweed 22.10.0-1.1
opensuse advisories openSUSE-SU-2024:12474-1
Is CVE-2022-39348 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-39348 updated cvss 5.4
python-twisted: NameVirtualHost Host header injection
-
Red Hat Ansible Automation Platform 1.2 twisted[tls] Red Hat Ansible Automation Platform 2 twisted[tls]affected: no fix available
-
Red Hat Ceph Storage 3 python-twisted-core Red Hat Enterprise Linux 6 python-twisted, python-twisted-web, python-twisted-core, python-twisted-lore, python-twisted-mail, python-twisted-news, +5 more Red Hat Enterprise Linux 7 python-twisted-web, python-twisted-core, python-twisted-words Red Hat OpenStack Platform 13 (Queens) python-twistedaffected: no fix planned “Out of support scope”
-
Red Hat OpenStack Platform 16.1 python-twisted, python3-twisted Red Hat OpenStack Platform 16.2 python-twisted, python3-twistedaffected: no fix available “Fix deferred”
-
Red Hat Satellite 6 python-twisted, python2-twisted, python-twisted-web, python-twisted-coreaffected: no fix planned “Will not fix”
-
Red Hat Storage 3 python-twisted-coreaffected: no fix planned “Out of support scope”
-
Red Hat Service Telemetry Framework 1.3 for RHEL 8 python-twistedaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | twisted | >=0.9.4, <22.10.0rc1 |
22.10.0rc1 |
Affected products
- twisted twisted
Classification
References
-
github.com
/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b
web, patch
-
github.com
/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4
web, patch
-
github.com
/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647
web, exploit, patch, third-party-advisory
-
security.gentoo.org
/glsa/202301-02
vendor-advisory, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/11/msg00038.html
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2024/11/msg00028.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-39348
advisory
-
github.com
/twisted/twisted
package
-
pypi.org
/project/twisted
package
-
github.com
/advisories/GHSA-vg46-2rrj-3647
advisory
Sources
- CVE List CVE-2022-39348
- GitHub Advisory GHSA-vg46-2rrj-3647
- NVD CVE-2022-39348
- OSV PYSEC-2026-1055
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.