CVE-2018-7536Canonical 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.6% 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. The django.utils.html.urlize() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (only one regular expression for Django 1.8.x). The urlize() function is used to implement the urlize and urlizetrunc 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.0a1 < 2.0.3 |
2.0.3 |
pip install "django>=2.0.3" |
| PyPI | django |
≥ 1.11a1 < 1.11.11 |
1.11.11 |
pip install "django>=1.11.11" |
| PyPI | django |
≥ 1.8a1 < 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-r28v-mw67-m5p9, PYSEC-2018-5). 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 |
| redhat | openstack | 10 |
| redhat | openstack | 13 |
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
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- github.com
- github.com
- github.com
- 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