PT-2018-1903

CVE-2018-7537

·

Published

2018-03-06

·

Updated

2026-10-31

Description by

CVSS 3.1
5.3
Medium
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions Django versions 2.0 before 2.0.3 Django versions 1.11 before 1.11.11 Django versions 1.8 before 1.8.19
Description The issue is related to a catastrophic backtracking vulnerability in a regular expression used by the django.utils.text.Truncator class, specifically in its chars() and words() methods when the html=True argument is passed. This vulnerability affects the truncatechars html and truncatewords html template filters. An attacker could exploit this by crafting a string that leads to a denial of service.
Recommendations For Django versions 2.0 before 2.0.3, update to version 2.0.3 or later. For Django versions 1.11 before 1.11.11, update to version 1.11.11 or later. For Django versions 1.8 before 1.8.19, update to version 1.8.19 or later. As a temporary workaround, consider avoiding the use of the html=True argument in the chars() and words() methods of django.utils.text.Truncator until a patch is applied.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2F9X-5V75-3QV4
CLEANSTART-2025-KG86043
DLA-1303-1
DLA-2233-1
DSA-4161-1
MGASA-2018-0166
OPENSUSE-SU-2018:0651-1
OPENSUSE-SU-2023:0077-1
OPENSUSE-SU-2024:11205-1
OPENSUSE-SU-2024:13887-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-2018-6
RHSA-2018:2927
RHSA-2019:0265
SUSE-SU-2018:0973-1
SUSE-SU-2018:1102-1
SUSE-SU-2018:1828-1
SUSE-SU-2018:1830-1
USN-3591-1
Found an issue in the description? Have something to add? Feel free to write us 👾