Live threats

All CVEs / Canonical

CVE-2018-7537Canonical Ubuntu Linux

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
4.4%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Mar 9, 2018
Updated
Jun 17, 2026
Category
Operating system · Linux
Weakness (CWE)
CWE-185
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ubuntu Linux.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 2.0 < 2.0.3 2.0.3 pip install "django>=2.0.3"
PyPI django ≥ 1.11 < 1.11.11 1.11.11 pip install "django>=1.11.11"
PyPI django ≥ 1.8 < 1.8.19 1.8.19 pip install "django>=1.8.19"
PyPI django ≥ 1.8 < 1.8.19 1.8.19 pip install "django>=1.8.19"
PyPI django ≥ 1.11 < 1.11.11 1.11.11 pip install "django>=1.11.11"
PyPI django ≥ 2.0 < 2.0.3 2.0.3 pip install "django>=2.0.3"

Per OSV / GitHub Advisories (GHSA-2f9x-5v75-3qv4, PYSEC-2018-6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux17.10
djangoprojectdjango≥ 1.8 < 1.8.19
djangoprojectdjango≥ 1.11 < 1.11.11
djangoprojectdjango≥ 2.0 < 2.0.3
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.