CVE-2018-7537
published 2018-03-09CVE-2018-7537: 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…
PriorityP431medium5.3CVSS 3.0
AVNACLPRNUINSUCNINAL
EPSS
4.62%
90.5th percentile
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | python-django | < python-django 1:1.11.11-1 (bookworm) | python-django 1:1.11.11-1 (bookworm) |
| djangoproject | django | >= 1.11 < 1.11.11 | 1.11.11 |
| djangoproject | django | >= 1.11 < 1.11.11 | 1.11.11 |
| djangoproject | django | >= 1.8 < 1.8.19 | 1.8.19 |
| djangoproject | django | >= 1.8 < 1.8.19 | 1.8.19 |
| djangoproject | django | >= 2.0 < 2.0.3 | 2.0.3 |
| djangoproject | django | >= 2.0 < 2.0.3 | 2.0.3 |
CVSS provenance
nvdv3.05.3MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv5.3MEDIUM
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
ghsa·2019-01-04
CVE-2018-7537 [LOW] CWE-185 Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
OSV
Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
osv·2019-01-04
CVE-2018-7537 [LOW] Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
Django Denial-of-service possibility in truncatechars_html and truncatewords_html template filters
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
OSV
CVE-2018-7537: An issue was discovered in Django 2
osv·2018-03-09·CVSS 5.3
CVE-2018-7537 [MEDIUM] CVE-2018-7537: An issue was discovered in Django 2
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
Ubuntu
Django vulnerabilities
vendor_ubuntu·2018-03-06
CVE-2018-7536 Django vulnerabilities
Title: Django vulnerabilities
Summary: Several security issues were fixed in Django.
James Davis discovered that Django incorrectly handled certain template
filters. A remote attacker could possibly use this issue to cause Django
to consume resources, resulting in a denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
vendor_redhat·2018-03-06·CVSS 5.3
CVE-2018-7537 [MEDIUM] CWE-20 django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
Statement: This issue affects the versions of django as shipped with Red Hat Subscription Asset Manager. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this iss
Debian
CVE-2018-7537: python-django - An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8...
vendor_debian·2018·CVSS 5.3
CVE-2018-7537 [MEDIUM] CVE-2018-7537: python-django - An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8...
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 truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
Scope: local
bookworm: resolved (fixed in 1:1.11.11-1)
bullseye: resolved (fixed in 1:1.11.11-1)
forky: resolved (fixed in 1:1.11.11-1)
sid: resolved (fixed in 1:1.11.11-1)
trixie: resolved (fixed in 1:1.11.11-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-7536 CVE-2018-7537 python-django16: various flaws [epel-7]
bugzilla·2018-03-06·CVSS 5.3
CVE-2018-7536 [MEDIUM] CVE-2018-7536 CVE-2018-7537 python-django16: various flaws [epel-7]
CVE-2018-7536 CVE-2018-7537 python-django16: various flaws [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the following template to for the 'fedpkg update'
Bugzilla
CVE-2018-7536 CVE-2018-7537 python-django: various flaws [fedora-all]
bugzilla·2018-03-06·CVSS 5.3
CVE-2018-7536 [MEDIUM] CVE-2018-7536 CVE-2018-7537 python-django: various flaws [fedora-all]
CVE-2018-7536 CVE-2018-7537 python-django: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedo
Bugzilla
CVE-2018-7536 CVE-2018-7537 python-django: various flaws [epel-7]
bugzilla·2018-03-06·CVSS 5.3
CVE-2018-7536 [MEDIUM] CVE-2018-7536 CVE-2018-7537 python-django: various flaws [epel-7]
CVE-2018-7536 CVE-2018-7537 python-django: various flaws [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
Use the following template to for the 'fedpkg update' r
Bugzilla
CVE-2018-7537 django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
bugzilla·2018-02-27·CVSS 5.3
CVE-2018-7537 [MEDIUM] CVE-2018-7537 django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
CVE-2018-7537 django: Catastrophic backtracking in regular expressions via 'truncatechars_html' and 'truncatewords_html'
CVE-2018-7537: Denial-of-service possibility in ``truncatechars_html``
and ``truncatewords_html`` 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 ``truncatechars_html`` and ``truncatewords_html`` template
filters, which were thus vulnerable.
The backtracking problem in the regular expression is fixed.
Discussion:
Acknowledgments:
Name: the Django project
---
External References:
https://www.dj
http://www.securityfocus.com/bid/103357https://access.redhat.com/errata/RHSA-2018:2927https://access.redhat.com/errata/RHSA-2019:0265https://lists.debian.org/debian-lts-announce/2018/03/msg00006.htmlhttps://usn.ubuntu.com/3591-1/https://www.debian.org/security/2018/dsa-4161https://www.djangoproject.com/weblog/2018/mar/06/security-releases/http://www.securityfocus.com/bid/103357https://access.redhat.com/errata/RHSA-2018:2927https://access.redhat.com/errata/RHSA-2019:0265https://lists.debian.org/debian-lts-announce/2018/03/msg00006.htmlhttps://usn.ubuntu.com/3591-1/https://www.debian.org/security/2018/dsa-4161https://www.djangoproject.com/weblog/2018/mar/06/security-releases/
2018-03-09
Published