Vulnerability advisory
GHSA-c4qh-4vgv-qc6g
Django Denial-of-service in django.utils.text.Truncator
Also known as CVE-2019-14232PYSEC-2019-11
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Affected versions
| Affected | Fixed in |
|---|---|
1.11a1 to before 1.11.23 | 1.11.23Advisories → |
2.1a1 to before 2.1.11 | 2.1.11Advisories → |
2.2a1 to before 2.2.4 | 2.2.4Advisories → |
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-14232 ↗
- Webwww.openwall.com/lists/oss-security/2023/10/04/6 ↗
- Webwww.djangoproject.com/weblog/2019/aug/01/security-releases ↗
- Webwww.debian.org/security/2019/dsa-4498 ↗
- Websecurity.netapp.com/advisory/ntap-20190828-0002 ↗
- Websecurity.gentoo.org/glsa/202004-17 ↗
- Webseclists.org/bugtraq/2019/Aug/15 ↗
- Weblists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/5XTP44JEOSNXRVW4JDZXA5XGMBDZLWSW ↗
- Weblists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/3LGJSPCN3VEG2UJPYCUB6TU75JTIV2TQ ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK ↗
- Weblists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK ↗
- Webgroups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs ↗
- Webgroups.google.com/forum/#!topic/django-announce/jIoju2-KLDs ↗
- Webgithub.com/pypa/advisory-db/tree/main/vulns/django/PYSEC-2019-11.yaml ↗
- Webgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-11.yaml ↗
- Packagegithub.com/django/django ↗
- Advisorygithub.com/advisories/GHSA-c4qh-4vgv-qc6g ↗
- Webdocs.djangoproject.com/en/dev/releases/security ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html ↗
- Weblists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html ↗
- Webwww.openwall.com/lists/oss-security/2023/10/04/6 ↗
- Webwww.openwall.com/lists/oss-security/2024/03/04/1 ↗