cve.bz

CVE-2024-41810 twisted twisted: Cross-site Scripting

6.1 mediumEPSS 1.2%Fix available

Medium (6.1) in twisted twisted. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in twisted 24.7.0rc1.

On this page
Twisted is an event-based framework for internet applications, supporting Python 3.6+. The `twisted.web.util.redirectTo` function contains an HTML injection vulnerability. If application code allows an attacker to control the redirect URL this vulnerability may result in Reflected Cross-Site Scripting (XSS) in the redirect response HTML body. This vulnerability is fixed in 24.7.0rc1.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-07-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-41810 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-41810?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-41810?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-41810 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
twisted:twistedthrough 24.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cf56-g6w6-pqq2PyPItwisted<24.7.0rc124.7.0rc1
PYSEC-2024-75PyPItwisted<24.7.0rc124.7.0rc1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11twisted20.3.0-7+deb11u2DLA-3970-1
Debian12twisted22.4.0-4+deb12u1DEBIAN-CVE-2024-41810 DSA-5797-1
Debian13, 14twisted24.7.0-1DEBIAN-CVE-2024-41810
Ubuntu20.04:LTStwisted18.9.0-11ubuntu0.20.04.4UBUNTU-CVE-2024-41810 USN-6988-1
Ubuntu22.04:LTStwisted22.1.0-2ubuntu2.5UBUNTU-CVE-2024-41810 USN-6988-1
Ubuntu24.04:LTStwisted24.3.0-1ubuntu0.1UBUNTU-CVE-2024-41810 USN-6988-1
UbuntuPro:14.04:LTStwisted13.2.0-1ubuntu1.2+esm3UBUNTU-CVE-2024-41810 USN-6988-1
UbuntuPro:16.04:LTStwisted16.0.0-1ubuntu0.4+esm2UBUNTU-CVE-2024-41810 USN-6988-1
UbuntuPro:18.04:LTStwisted17.9.0-2ubuntu0.3+esm1UBUNTU-CVE-2024-41810 USN-6988-1
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.12-1.el8apRHSA-2024:7312
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.5.12-1.el9apRHSA-2024:7312
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morepython-Twisted19.10.0-150200.3.24.1SUSE-SU-2024:2757-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Public Cloud 15 SP4 and 4 morepython-Twisted22.10.0-150400.5.23.1SUSE-SU-2024:2880-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Server Applications 15 SP5 and 5 morepython3-Twisted22.2.0-150400.21.1SUSE-SU-2024:2860-1
SUSELinux Enterprise Module for Web and Scripting 12python-Twisted15.2.1-9.26.1SUSE-SU-2024:2732-1
openSUSELeap 15.5python3-Twisted22.2.0-150400.21.1SUSE-SU-2024:2860-1
openSUSELeap 15.5, Leap 15.6python-Twisted22.10.0-150400.5.23.1SUSE-SU-2024:2880-1
openSUSETumbleweedpython-Twisted24.3.0-2.1openSUSE-SU-2024:14236-1
Azure Linux2python-twisted22.10.0-3AZL-47073
Azure Linux3python-twisted22.10.0-3AZL-47195

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability is exploitable only in Firefox. All other tested browsers will display an error message to the user and will not render the HTML body.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.5.12-1.el8apFixed 2024-09-27RHSA-2024:7312
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.5.12-1.el9apFixed 2024-09-27RHSA-2024:7312
Red Hat Ansible Automation Platform 1.2ansible-towerWill not fix
Red Hat Ansible Automation Platform 2python3x-twistedAffected
Red Hat Ansible Automation Platform 2python-twistedAffected
Red Hat Enterprise Linux 6python-twistedOut of support scope
Red Hat Enterprise Linux 6python-twisted-webOut of support scope
Red Hat Enterprise Linux 7python-twisted-webOut of support scope
Red Hat OpenStack Platform 16.1python-twistedOut of support scope
Red Hat OpenStack Platform 16.2python-twistedWill not fix
Red Hat Storage 3python-carbonOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-41810.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-18 XSS Targeting Non-Script Elements Likelihood: High · Severity: Very High
  • CAPEC-32 XSS Through HTTP Query Strings Likelihood: High · Severity: High
  • CAPEC-86 XSS Through HTTP Headers Likelihood: High · Severity: Very High
  • CAPEC-193 PHP Remote File Inclusion Likelihood: High · Severity: High
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON