CVE-2019-14232

Django: backtracking in a regular expression in django.utils.text.Truncator leads to DoS

Published Aug 2, 2019 CVSS 3.1 · 7.5 High EPSS 3.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1872-1 python-django security update
Debian DLA Debian DLA DLA-4210-1 python-django security update
Debian DSA Debian DSA DSA-4498-1 python-django security update
EUVD EUVD EUVD-2019-0035 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.
Github GHSA Github GHSA GHSA-c4qh-4vgv-qc6g Django Denial-of-service in django.utils.text.Truncator
Ubuntu USN Ubuntu USN USN-4084-1 Django vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.02473}

epss

{'score': 0.0254}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 12:12 AM
Reserved
Jul 22, 2019, 12:00 AM
Status
Modified
Published
Aug 2, 2019, 3:15 PM
Modified
Jun 17, 2026, 2:18 AM
Severity
Moderate
Public date
Aug 1, 2019, 8:00 AM