PT-2024-3887

CVE-2024-27351

·

Published

2024-03-04

·

Updated

2026-10-31

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Django versions 3.2 through 3.2.24 Django versions 4.2 through 4.2.10 Django versions 5.0 through 5.0.2
Description The issue is related to a potential regular expression denial-of-service in the django.utils.text.Truncator.words() method. This could allow a remote attacker to cause a denial-of-service. The truncatewords html template filter is also subject to this potential attack via a crafted string.
Recommendations For Django versions 3.2 through 3.2.24, update to version 3.2.25 or later. For Django versions 4.2 through 4.2.10, update to version 4.2.11 or later. For Django versions 5.0 through 5.0.2, update to version 5.0.3 or later. As a temporary workaround, consider disabling the django.utils.text.Truncator.words() method with html=True until a patch is available. Restrict access to the truncatewords html template filter to minimize the risk of exploitation.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-VM8Q-M57G-PFF3
ALT-PU-2024-3676
ALT-PU-2024-4472
ALT-PU-2024-8036
ALT-PU-2025-10176
BIT-DJANGO-2024-27351
CLEANSTART-2024-DX18597
DLA-4210-1
MGASA-2024-0075
OESA-2024-1254
OPENSUSE-SU-2024:0077-1
OPENSUSE-SU-2024:0080-1
OPENSUSE-SU-2024:13749-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11235-1
OPENSUSE-SU-2026:11248-1
OPENSUSE-SU-2026:11270-1
PYSEC-2024-47
RHSA-2024:1640
RHSA-2024:1878
RHSA-2024:3781
RHSA-2024:5662
RHSA-2025:4187
SUSE-SU-2024:0874-1
SUSE-SU-2024:0875-1
SUSE-SU-2024:0902-1
SUSE-SU-2024:1140-1
SUSE-SU-2024:1141-1
USN-6674-1
USN-6674-2
Found an issue in the description? Have something to add? Feel free to write us 👾