CVE-2018-7536: Medium severity Canonical Ubuntu Linux vulnerability

Published Feb 27, 2018
·
Updated

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.

Other sources

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.

Launchpad

CVE-2018-7536: Denial-of-service possibility in urlize and urlizetrunc template filters ===========================================================================

The django.utils.html.urlize() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (one regular expression for Django 1.8). The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable.

The problematic regular expressions are replaced with parsing logic that behaves similarly.

Red Hat

Affected Software

18 affected componentsFixes available
redhat/Django<2.0.3
2.0.3
redhat/Django<1.11.11
1.11.11
redhat/Django<1.8.19
1.8.19
pip/Django>=1.8a1<1.8.19
1.8.19
pip/Django>=1.11a1<1.11.11
1.11.11
pip/Django>=2.0a1<2.0.3
2.0.3
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
debian/python-django
2:2.2.28-1~deb11u22:2.2.28-1~deb11u123:3.2.19-1+deb12u13:3.2.25-0+deb12u13:4.2.23-13:4.2.27-0+deb13u13:4.2.28-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 2.0.3
  2. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 1.11.11
  3. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 1.8.19
  4. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 1.8.19
  5. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 1.11.11
  6. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 2.0.3
  7. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 2:2.2.28-1~deb11u2Fixed in 2:2.2.28-1~deb11u12Fixed in 3:3.2.19-1+deb12u1Fixed in 3:3.2.25-0+deb12u1Fixed in 3:4.2.23-1Fixed in 3:4.2.27-0+deb13u1Fixed in 3:4.2.28-1
  8. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 2.0.3
  9. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 1.11.11
  10. Upgrade

    Upgrade Django to a version that resolves this vulnerability.

    Fixed in 1.8.19

Event History

Mar 9, 2018
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 4, 2019
Advisory Published
via GitHub·05:50 PM
Jan 12, 2024
Data Sourced
via Launchpad·10:27 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·08:54 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·08:54 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-7536?

CVE-2018-7536 is a vulnerability in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19 that allows for catastrophic backtracking and can result in a denial of service attack.

2

How severe is CVE-2018-7536?

CVE-2018-7536 has a severity rating of 5.3, which is considered medium.

3

How can I fix CVE-2018-7536?

To fix CVE-2018-7536, upgrade to Django 1.8.19, 1.11.11, or 2.0.3 depending on the version you are using.

4

Where can I find more information about CVE-2018-7536?

You can find more information about CVE-2018-7536 on the CVE Mitre website and the Django security releases page.

5

What is the common weakness enumeration (CWE) for CVE-2018-7536?

The CWE for CVE-2018-7536 is CWE-185, which refers to a behavior that can expose sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203