VDB

CVE-2018-7537

CVE-2018-7537 PUBLISHED CVSS 5.300000190734863 MEDIUM

Reported by mitre · Published March 9, 2018

Django is fixed in 2.0.3, 1.11.11 and 1.8.19 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
DjangoPyPI2.0.3, 1.11.11, 1.8.19
py3-djangoAlpine1.11.11-r0
py-djangoAlpine1.11.11-r0, 1.8.19-r0
python-djangoUbuntu:16.04:LTS1.8.7-1ubuntu5.6
djangodjangoproject2.0.3, 1.11.11, 1.8.19

Risk scores

CVSS 3.0
5.300000190734863
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
n/an/an/a
alpinepy3-django0
alpinepy-django0, 0
PyPIdjango
n/an/a*
PyPIDjango2.0, 1.11, 1.8
archpython-django0

Timeline

  • Mar 6, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 8, 2025 CVE Updated
  • Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 6, 2026 Security Advisory (6 in total, the first dated here)
  • Sep 19, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-7537
vulnetix vdb fixes CVE-2018-7537

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-7537/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›