Back
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()…
Medium5.3EPSS 4.4%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 4.4% · top 8.7% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIDjangoGHSA-2f9x-5v75-3qv4 (opens in a new tab)
References (7)
- USN-3591-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20180308 [SECURITY] [DLA 1303-1] python-django security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.djangoproject.com/weblog/2018/mar/06/security-releases/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:2927 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 103357 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- RHSA-2019:0265 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- DSA-4161 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2f9x-5v75-3qv4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-7537)Record last updated .