PT-2022-7596 · Twisted+5 · Twisted+5

Adiroiban

·

Published

2022-10-26

·

Updated

2025-12-26

·

CVE-2022-39348

CVSS v2.0

5.5

Medium

VectorAV:N/AC:L/Au:S/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Twisted versions 0.9.4 through 22.10.0rc1
Description The issue is related to the Twisted event-based framework for internet applications. 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. This could potentially allow a remote attacker to access and compromise confidential data. However, exploitation is considered difficult as it requires the ability to modify the Host header of a normal HTTP request, implying a privileged position.
Recommendations For Twisted versions 0.9.4 through 22.10.0rc1, update to version 22.10.0rc1 or later to resolve the issue. As a temporary workaround, consider restricting access to the twisted.web.vhost.NameVirtualHost module until a patch is available. Avoid using the Host header in the affected API endpoint until the issue is resolved.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-11357
BDU:2024-07354
CVE-2022-39348
DLA-3212-1
DLA-3970-1
GHSA-VG46-2RRJ-3647
MGASA-2023-0061
OESA-2023-1908
OESA-2023-1909
OESA-2023-1910
OESA-2023-1911
OESA-2023-1970
OPENSUSE-SU-2022_4000-1
OPENSUSE-SU-2022_4057-1
OPENSUSE-SU-2024:12474-1
SUSE-SU-2022:4000-1
SUSE-SU-2022:4057-1
SUSE-SU-2022:4074-1
SUSE-SU-2022_4000-1
SUSE-SU-2022_4057-1
USN-6575-1

Affected Products

Astra Linux
Linuxmint
Red Os
Suse
Twisted
Ubuntu