Bug 1734405 (CVE-2019-14232) - CVE-2019-14232 Django: backtracking in a regular expression in django.utils.text.Truncator leads to DoS
Summary: CVE-2019-14232 Django: backtracking in a regular expression in django.utils.t...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-14232
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1735769 1750415 1735768 1735770 1735771 1738506 1738507 1738508 1744791 1744792 1744793 1744794 1746612 1750416
Blocks: 1734428
TreeView+ depends on / blocked
 
Reported: 2019-07-30 13:11 UTC by Marian Rehak
Modified: 2021-02-16 21:36 UTC (History)
32 users (show)

Fixed In Version: python-django 1.11.23, python-django 2.1.11, python-django 2.2.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-06 10:31:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1324 0 None None None 2020-04-06 09:01:24 UTC
Red Hat Product Errata RHSA-2020:4390 0 None None None 2020-10-28 18:23:07 UTC

Description Marian Rehak 2019-07-30 13:11:36 UTC
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:truncatechars_html and :tfilter:truncatewords_html template filters, which were thus vulnerable.

Comment 1 Marian Rehak 2019-08-01 12:31:41 UTC
Created python-django tracking bugs for this issue:

Affects: epel-7 [bug 1735768]
Affects: fedora-29 [bug 1735770]
Affects: fedora-30 [bug 1735771]


Created python-django16 tracking bugs for this issue:

Affects: epel-7 [bug 1735769]

Comment 2 Hardik Vyas 2019-08-05 12:00:05 UTC
External References:

https://www.djangoproject.com/weblog/2019/aug/01/security-releases/

Comment 12 Anten Skrabec 2019-08-29 00:02:31 UTC
Created python-django tracking bugs for this issue:

Affects: openstack-rdo [bug 1746612]

Comment 14 Marian Rehak 2019-09-04 08:20:45 UTC
Acknowledgments:

Name: the Django project

Comment 16 Riccardo Schirone 2019-09-09 14:51:50 UTC
Statement:

This issue affects the versions of python-django as shipped with Red Hat Gluster Storage 3, Red Hat Ceph Storage 2 and 3, as it contains the vulnerable code.

This issue affects Red Hat Update Infrastructure for Cloud Providers, but the vulnerable functions in python-django are currently not used in any part of the Product.

This issue does not affect Red Hat Satellite as the vulnerable functions in python-django are not used.

Red Hat OpenStack Platform:                                                                                                                 
* This issue affects all versions of python-django shipped with Red Hat Openstack Platform versions 9-15, as it contains the vulnerable code.
* Because the flaw's impact is Medium, it will not be fixed in Red Hat Openstack Platform 9 which is retiring on 8/24.

Comment 17 errata-xmlrpc 2020-04-06 09:01:21 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 15.0 (Stein)

Via RHSA-2020:1324 https://access.redhat.com/errata/RHSA-2020:1324

Comment 18 Product Security DevOps Team 2020-04-06 10:31:57 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-14232

Comment 25 errata-xmlrpc 2020-10-28 18:23:05 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 13.0 (Queens)
  Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUS

Via RHSA-2020:4390 https://access.redhat.com/errata/RHSA-2020:4390


Note You need to log in before you can comment on or make changes to this bug.