CVE-2019-14232: Input Validation

Published Jul 30, 2019
·
Updated

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. 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

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. 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.

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

— Red Hat

Affected Software

33 affected componentsFixes available
debian/1.7.11-1+deb8u6<=undefined
debian/2:2.2.3-5<=undefined
redhat/python-django<0:1.11.27-1.el7
0:1.11.27-1.el7
redhat/python-django<0:2.1.11-1.el8
0:2.1.11-1.el8
redhat/python-django<1.11.23
1.11.23
redhat/python-django<2.1.11
2.1.11
redhat/python-django<2.2.4
2.2.4
pip/django>=2.2a1<2.2.4
2.2.4
pip/django>=2.1a1<2.1.11
2.1.11
pip/django>=1.11a1<1.11.23
1.11.23
djangoproject Django>=1.11<1.11.23
djangoproject Django>=2.1<2.1.11
djangoproject Django>=2.2<2.2.4
openSUSE Leap=15.1
alpine/py-django<1.11.23-r0
1.11.23-r0
alpine/py-django<1.11.23-r0
1.11.23-r0
alpine/py-django<1.11.23-r0
1.11.23-r0
alpine/py-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
alpine/py3-django<1.11.23-r0
1.11.23-r0
debian/python-django
1.7.11-1+deb8u71:1.10.7-2+deb9u61:1.11.23-1~deb10u13:3.2.25-0+deb12u12:2.2.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:1.11.27-1.el7
  2. Upgrade

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

    Fixed in 0:2.1.11-1.el8
  3. Upgrade

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

    Fixed in 1.11.23
  4. Upgrade

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

    Fixed in 2.1.11
  5. Upgrade

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

    Fixed in 2.2.4
  6. Upgrade

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

    Fixed in 2.2.4
  7. Upgrade

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

    Fixed in 2.1.11
  8. Upgrade

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

    Fixed in 1.11.23
  9. Upgrade

    Upgrade alpine/py-django to a version that resolves this vulnerability.

    Fixed in 1.11.23-r0
  10. Upgrade

    Upgrade alpine/py3-django to a version that resolves this vulnerability.

    Fixed in 1.11.23-r0
  11. Upgrade

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

    Fixed in 1.7.11-1+deb8u7Fixed in 1:1.10.7-2+deb9u6Fixed in 1:1.11.23-1~deb10u1Fixed in 3:3.2.25-0+deb12u1Fixed in 2:2.2.4-1

Event History

Jul 30, 2019
Data Sourced
01:11 PM
DescriptionSeverityAffected Software
Aug 1, 2019
CVE Published
08:00 AM
Data Sourced
08:00 AM
RemedyWeakness
Aug 2, 2019
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·03:15 PM
DescriptionSeverityAffected Software
Aug 6, 2019
Advisory Published
01:43 AM
Feb 16, 2021
Data Sourced
via Red Hat·09:36 PM
DescriptionSeverityAffected Software
May 1, 2024
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·05:15 PM
Affected Software
Advisory Published
via GitHub·08:29 PM
Data Sourced
via GitHub·08:29 PM
DescriptionSeverityWeaknessAffected Software
Jul 3, 2024
Updated
via NVD·01:35 AM
SeverityWeaknessAffected Software
Updated
via GitHub·09:09 PM
Severity
Sep 20, 2024
Updated
via GitHub·04:15 PM
Affected Software
Jun 17, 2026
Updated
via NVD·02:18 AM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2019-14232?

CVE-2019-14232 is a vulnerability in Django versions 1.11.x, 2.1.x, and 2.2.x.

2

How severe is CVE-2019-14232?

CVE-2019-14232 has a severity score of 7.5 (High).

3

Which versions of Django are affected by CVE-2019-14232?

Django versions 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4 are affected by CVE-2019-14232.

4

How can I fix CVE-2019-14232?

To fix CVE-2019-14232, upgrade to Django version 1.11.23, 2.1.11, or 2.2.4.

5

Where can I find more information about CVE-2019-14232?

You can find more information about CVE-2019-14232 on the CVE website (https://www.cve.org/CVERecord?id=CVE-2019-14232), the NVD website (https://nvd.nist.gov/vuln/detail/CVE-2019-14232), the Django website (https://www.djangoproject.com/weblog/2019/aug/01/security-releases/), and the Red Hat Bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=1734405).

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