{"cve":"CVE-2018-7537","nvd":{"published":"2018-03-09T20:29:00.660","modified":"2026-06-17T02:03:19.720","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-185"],"references":["http://www.securityfocus.com/bid/103357","https://access.redhat.com/errata/RHSA-2018:2927","https://access.redhat.com/errata/RHSA-2019:0265","https://lists.debian.org/debian-lts-announce/2018/03/msg00006.html","https://usn.ubuntu.com/3591-1/"],"products":["canonical:ubuntu_linux","debian:debian_linux","djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T20:48:50.842038930+00:00"},"epss":{"cve":"CVE-2018-7537","score":0.04374,"percentile":0.91278,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2f9x-5v75-3qv4","url":"https://osv.dev/vulnerability/GHSA-2f9x-5v75-3qv4","summary":"Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters","modified":"2024-11-27T05:25:46.502161Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.0 <2.0.3"],"fixed":["2.0.3"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.11 <1.11.11"],"fixed":["1.11.11"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.8 <1.8.19"],"fixed":["1.8.19"]}]},{"id":"PYSEC-2018-6","url":"https://osv.dev/vulnerability/PYSEC-2018-6","summary":"","modified":"2023-11-08T04:00:22.875849Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.8 <1.8.19",">=1.11 <1.11.11",">=2.0 <2.0.3"],"fixed":["1.8.19","1.11.11","2.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}