Skip to main content
← All vulnerabilities
CVE-2022-39348PYSEC-2026-1055GHSA-VG46-2RRJ-3647

Twisted vulnerable to NameVirtualHost Host header injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 22.10.0rc1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • twisted twisted

    From 0.9.4 · fixed in 22.10.0rc1

  • twistedPyPI

    From 0.9.4 · fixed in 22.10.0rc1

References 5

GitHub · twisted/twisted

lists.debian.org

security.gentoo.org