Skip to content
Fencer Intel
medium 6.1

CVE-2024-41810 json

HTML injection in HTTP redirect body

published 2y ago modified 4mo ago also EUVD-2024-0167 , GHSA-cf56-g6w6-pqq2 , PYSEC-2024-75

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 68%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi twisted 24.7.0rc1
  • twisted twisted 24.7.0rc1
  • twistedmatrix twisted 24.7.0rc1
  • twisted Debian 12 22.4.0-4+deb12u1
  • twisted Debian 14, Debian 13 24.7.0-1

debian advisories DEBIAN-CVE-2024-41810

  • twisted Ubuntu 20.04 LTS 18.9.0-11ubuntu0.20.04.4
  • twisted Ubuntu 22.04 LTS 22.1.0-2ubuntu2.5
  • twisted Ubuntu 24.04 LTS 24.3.0-1ubuntu0.1
  • twisted Ubuntu Pro 14.04 LTS 13.2.0-1ubuntu1.2+esm3
  • twisted Ubuntu Pro 16.04 LTS 16.0.0-1ubuntu0.4+esm2
  • twisted Ubuntu Pro 18.04 LTS 17.9.0-2ubuntu0.3+esm1

ubuntu advisories UBUNTU-CVE-2024-41810

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

  • automation-controller-venv-tower ansible automation platform 2.4 4.5.12-1.el8ap
  • automation-controller-venv-tower ansible automation platform 2.4 4.5.12-1.el9ap

red hat advisories RHSA-2024:7312

  • python-Twisted SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Python 3 15 SP6 +6 more 22.10.0-150400.5.23.1
  • python3-Twisted SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Server Applications 15 SP6 +6 more 22.2.0-150400.21.1
  • python-Twisted SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +4 more 19.10.0-150200.3.24.1
  • python-Twisted SLE Module for Web and Scripting 12 15.2.1-9.26.1

suse advisories SUSE-SU-2024:2880-1SUSE-SU-2024:2860-1SUSE-SU-2024:2757-1SUSE-SU-2024:2732-1

  • python-Twisted openSUSE Tumbleweed 24.3.0-2.1

opensuse advisories openSUSE-SU-2024:14236-1

  • python-twisted CBL-Mariner 2.0, Azure Linux 3.0 22.10.0-3

azure linux advisories AZL-47073AZL-47195

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2024-41810 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 Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-41810 updated cvss 4.2

python-twisted: Reflected XSS via HTML Injection in Redirect Response

  • Red Hat Ansible Automation Platform 1.2 ansible-tower
    affected: no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2 python-twisted, python3x-twisted
    affected: no fix available
  • Red Hat Enterprise Linux 6 python-twisted, python-twisted-web Red Hat Enterprise Linux 7 python-twisted-web Red Hat OpenStack Platform 16.1 python-twisted, python3-twisted
    affected: no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 16.2 python-twisted, python3-twisted
    affected: no fix planned “Will not fix”
  • Red Hat Storage 3 python-carbon
    affected: no fix planned “Out of support scope”
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower 4.5.12-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower 4.5.12-1.el9ap
    fixed: vendor fix RHSA-2024:7312
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller 4.5.12-1.el8ap, automation-controller-ui 4.5.12-1.el8ap, automation-controller-cli 4.5.12-1.el8ap, automation-controller-server 4.5.12-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller 4.5.12-1.el9ap, automation-controller-ui 4.5.12-1.el9ap, automation-controller-cli 4.5.12-1.el9ap, automation-controller-server 4.5.12-1.el9ap
    not affected: vulnerable code not present

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
2y ago

Exploit prediction

1.20% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-11).

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
pypi twisted
<24.7.0rc1
24.7.0rc1

Affected products

  • twisted twisted
  • twistedmatrix twisted

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation
  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page

References

Sources

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.

The maintainers of twisted/twisted published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.