Vulnerability in Djangoproject Django
CVE-2018-7537
An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.044, 91.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Djangoproject Django
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Debian Linux — versions 7.0, 8.0, 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (garethr/snyksh). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- USN-3591-1 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20180308 [SECURITY] [DLA 1303-1] python-django security update (mailing-list, Mailing List, Third Party Advisory)
- www.djangoproject.com/weblog/2018/mar/06/security-releases/ (Release Notes, Vendor Advisory)
- RHSA-2018:2927 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/103357 (Third Party Advisory, VDB Entry, vdb-entry)
- RHSA-2019:0265 (vendor-advisory, Third Party Advisory)
- DSA-4161 (vendor-advisory, Third Party Advisory)