CVE-2018-7537

Description

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.0 •
CVSS 2.0 •
EPSS 2.06% Top 20%
Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory djangoproject.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://usn.ubuntu.com/3591-1/ third party advisory vendor advisory
https://lists.debian.org/debian-lts-announce/2018/03/msg00006.html third party advisory mailing list
https://www.djangoproject.com/weblog/2018/mar/06/security-releases/ release notes vendor advisory
https://access.redhat.com/errata/RHSA-2018:2927 third party advisory vendor advisory
http://www.securityfocus.com/bid/103357 third party advisory vdb entry
https://access.redhat.com/errata/RHSA-2019:0265 third party advisory vendor advisory
https://www.debian.org/security/2018/dsa-4161 third party advisory vendor advisory

Frequently Asked Questions

What is the severity of CVE-2018-7537?
CVE-2018-7537 has been scored as a medium severity vulnerability.
How to fix CVE-2018-7537?
To fix CVE-2018-7537, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2018-7537 being actively exploited in the wild?
It is possible that CVE-2018-7537 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.