CVE-2018-7537: 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. 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 truncatecharshtml and truncatewordshtml template filters, which were thus vulnerable.

Other sources

CVE-2018-7537: Denial-of-service possibility in truncatecharshtml and truncatewordshtml template filters ============================================================================

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 truncatecharshtml and truncatewordshtml template filters, which were thus vulnerable.

The backtracking problem in the regular expression is fixed.

Red Hat

Affected Software

16 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.8<1.8.19
1.8.19
pip/django>=1.11<1.11.11
1.11.11
pip/django>=2.0<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
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·08:00 PM
Data Sourced
via MITRE·08:00 PM
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-7537?

CVE-2018-7537 is a vulnerability in Django versions 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19.

2

How severe is CVE-2018-7537?

CVE-2018-7537 has a severity rating of 5.3 (Medium).

3

How do I fix the CVE-2018-7537 vulnerability?

To fix the CVE-2018-7537 vulnerability, upgrade your Django installation to version 2.0.3, 1.11.11, or 1.8.19.

4

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

More information about CVE-2018-7537 can be found on the MITRE website (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7537) and the Django website (https://www.djangoproject.com/weblog/2018/mar/06/security-releases/).

5

Is there a fix available for CVE-2018-7537?

Yes, there is a fix available for CVE-2018-7537. Upgrade your Django installation to version 2.0.3, 1.11.11, or 1.8.19.

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