CVE-2018-7537Canonical Ubuntu Linux
Medium 5.3 No auth needed
Follow: this CVE · Canonical · Canonical Ubuntu Linux We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ubuntu Linux.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 17.10 |
| djangoproject | django | ≥ 1.8 < 1.8.19 |
| djangoproject | django | ≥ 1.11 < 1.11.11 |
| djangoproject | django | ≥ 2.0 < 2.0.3 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
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.
- www.securityfocus.com Third Party Advisory VDB Entry
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.djangoproject.com Release Notes Vendor Advisory