{"api_version":"1","generated_at":"2026-04-22T22:50:51+00:00","cve":"CVE-2022-39348","urls":{"html":"https://cve.report/CVE-2022-39348","api":"https://cve.report/api/cve/CVE-2022-39348.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39348","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39348"},"summary":{"title":"CVE-2022-39348","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-10-26 20:15:00","updated_at":"2023-03-08 01:07:00"},"problem_types":["CWE-79","CWE-80"],"metrics":[],"references":[{"url":"https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647","name":"https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647","refsource":"CONFIRM","tags":[],"title":"NameVirtualHost Host header injection. · Advisory · twisted/twisted · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202301-02","name":"GLSA-202301-02","refsource":"GENTOO","tags":[],"title":"Twisted: Multiple Vulnerabilities (GLSA 202301-02) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00038.html","name":"[debian-lts-announce] 20221128 [SECURITY] [DLA 3212-1] twisted security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3212-1] twisted security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b","name":"https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-vg46-2rrj-3647 · twisted/twisted@f2f5e81 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4","name":"https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4","refsource":"MISC","tags":[],"title":"vhost bugfix... · twisted/twisted@f49041b · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39348","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39348","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"twistedmatrix","cpe5":"twisted","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"twistedmatrix","cpe5":"twisted","cpe6":"22.10.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-39348","qid":"181256","title":"Debian Security Update for twisted (DLA 3212-1)"},{"cve":"CVE-2022-39348","qid":"182038","title":"Debian Security Update for twisted (CVE-2022-39348)"},{"cve":"CVE-2022-39348","qid":"200039","title":"Ubuntu Security Notification for Twisted Vulnerabilities (USN-6575-1)"},{"cve":"CVE-2022-39348","qid":"296099","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 57.144.3 Missing (CPUAPR2023)"},{"cve":"CVE-2022-39348","qid":"354855","title":"Amazon Linux Security Advisory for python-twisted-web : ALAS2-2023-2008"},{"cve":"CVE-2022-39348","qid":"354859","title":"Amazon Linux Security Advisory for python-twisted-web : ALAS-2023-1717"},{"cve":"CVE-2022-39348","qid":"355072","title":"Amazon Linux Security Advisory for python-twisted-web : AL2012-2023-396"},{"cve":"CVE-2022-39348","qid":"355240","title":"Amazon Linux Security Advisory for python-twisted : ALAS2023-2023-130"},{"cve":"CVE-2022-39348","qid":"710703","title":"Gentoo Linux Twisted Multiple Vulnerabilities (GLSA 202301-02)"},{"cve":"CVE-2022-39348","qid":"752877","title":"SUSE Enterprise Linux Security Update for python-Twisted (SUSE-SU-2022:4000-1)"},{"cve":"CVE-2022-39348","qid":"752884","title":"SUSE Enterprise Linux Security Update for python-Twisted (SUSE-SU-2022:4057-1)"},{"cve":"CVE-2022-39348","qid":"904353","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-twisted (11361)"},{"cve":"CVE-2022-39348","qid":"904365","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-twisted (11357)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39348","STATE":"PUBLIC","TITLE":"Twisted vulnerable to NameVirtualHost Host header injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"twisted","version":{"version_data":[{"version_value":">= 0.9.4, < 22.10.0rc1"}]}}]},"vendor_name":"twisted"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)"}]},{"description":[{"lang":"eng","value":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}]},"references":{"reference_data":[{"name":"https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647","refsource":"CONFIRM","url":"https://github.com/twisted/twisted/security/advisories/GHSA-vg46-2rrj-3647"},{"name":"https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b","refsource":"MISC","url":"https://github.com/twisted/twisted/commit/f2f5e81c03f14e253e85fe457e646130780db40b"},{"name":"https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4","refsource":"MISC","url":"https://github.com/twisted/twisted/commit/f49041bb67792506d85aeda9cf6157e92f8048f4"},{"refsource":"MLIST","name":"[debian-lts-announce] 20221128 [SECURITY] [DLA 3212-1] twisted security update","url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00038.html"},{"refsource":"GENTOO","name":"GLSA-202301-02","url":"https://security.gentoo.org/glsa/202301-02"}]},"source":{"advisory":"GHSA-vg46-2rrj-3647","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-10-26 20:15:00","lastModifiedDate":"2023-03-08 01:07:00","problem_types":["CWE-79","CWE-80"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:twistedmatrix:twisted:*:*:*:*:*:*:*:*","versionStartIncluding":"0.9.4","versionEndExcluding":"22.10.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}