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.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
- CVSS 3.0 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade py3-djangoUpgrade py-django | Nov 8, 2019 | Aug 2, 2019 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Aug 2, 2019 |
| Debian | — | Upgrade python-django | Aug 8, 2019 | Aug 2, 2019 |
| Freebsd | — | Upgrade py27-django22Upgrade py27-django111Upgrade py35-django22Upgrade py35-django111Upgrade py37-django21Upgrade py27-django21Upgrade py36-django21Upgrade py35-django21Upgrade py37-django111Upgrade py36-django22Upgrade py36-django111Upgrade py37-django22 | Aug 4, 2019 | Aug 3, 2019 |
| Gentoo Linux | — | Upgrade dev-python/django. | May 1, 2020 | Aug 2, 2019 |
| Oracle Solaris | — | Upgrade library/python/django-35 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-37 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-27 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-34 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4 | Oct 16, 2019 | Aug 2, 2019 |
| Suse | — | Upgrade python3-django | Aug 9, 2019 | Aug 1, 2019 |
| Ubuntu | — | Upgrade python3-djangoUpgrade python-django | Aug 2, 2019 | Aug 1, 2019 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub