CVE-2018-7536
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. 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.
How to fix
- djangoproject django1.8.19, 1.11.11, 2.0.3 or later
- django2.0.3, 1.11.11, 1.8.19 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject django | 1.8 ≤ v < 1.8.19, 1.11 ≤ v < 1.11.11, 2.0 ≤ v < 2.0.3 | 1.8.19, 1.11.11, 2.0.3 |
| canonical ubuntu_linux | 14.04, 16.04, 17.10 | — |
| debian debian_linux | 7.0, 8.0, 9.0 | — |
| redhat openstack | 10, 13 | — |
| djangoPyPI | 2.0a1 ≤ v < 2.0.3, 1.11a1 ≤ v < 1.11.11, 1.8a1 ≤ v < 1.8.19, 1.8 ≤ v < 1.8.19, 1.11 ≤ v < 1.11.11, 2.0 ≤ v < 2.0.3 | 2.0.3, 1.11.11, 1.8.19 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.