Description
An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
References (12)
Core 12
Core References
Third Party Advisory vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html
Mailing List mailing-list
https://seclists.org/bugtraq/2019/Aug/15
Mailing List vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html
Mailing List, Third Party Advisory vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/
Patch, Vendor Advisory
https://docs.djangoproject.com/en/dev/releases/security/
Vendor Advisory
https://security.netapp.com/advisory/ntap-20190828-0002/
Third Party Advisory vendor-advisory
https://www.debian.org/security/2019/dsa-4498
Third Party Advisory vendor-advisory
https://security.gentoo.org/glsa/202004-17
Mailing List mailing-list
http://www.openwall.com/lists/oss-security/2023/10/04/6
Mailing List mailing-list
http://www.openwall.com/lists/oss-security/2024/03/04/1
Scores
CVSS v3
7.5
EPSS
0.0297
EPSS Percentile
86.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-400
Status
published
Products (3)
djangoproject/django
1.11 - 1.11.23
opensuse/leap
15.1
pypi/Django
1.11a1 - 1.11.23PyPI
Published
Aug 02, 2019
Tracked Since
Feb 18, 2026