In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.
The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Django | Djangoproject | 3.2 (including) | 3.2.22 (excluding) |
Django | Djangoproject | 4.1 (including) | 4.1.12 (excluding) |
Django | Djangoproject | 4.2 (including) | 4.2.6 (excluding) |
Red Hat Ansible Automation Platform 2.4 for RHEL 8 | RedHat | python3x-django-0:3.2.22-1.el8ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 8 | RedHat | automation-controller-0:4.4.7-1.el8ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 9 | RedHat | python-django-0:3.2.22-1.el9ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 9 | RedHat | automation-controller-0:4.4.7-1.el9ap | * |
Red Hat Satellite 6.14 for RHEL 8 | RedHat | python-django-0:3.2.22-1.el8pc | * |
Red Hat Satellite 6.14 for RHEL 8 | RedHat | python-django-0:3.2.22-1.el8pc | * |
Red Hat Satellite 6.15 for RHEL 8 | RedHat | python-django-0:4.2.9-1.el8pc | * |
Red Hat Satellite 6.15 for RHEL 8 | RedHat | python-django-0:4.2.9-1.el8pc | * |
RHUI 4 for RHEL 8 | RedHat | python-django-0:4.2.11-1.el8ui | * |
Python-django | Ubuntu | bionic | * |
Python-django | Ubuntu | devel | * |
Python-django | Ubuntu | esm-infra/bionic | * |
Python-django | Ubuntu | focal | * |
Python-django | Ubuntu | jammy | * |
Python-django | Ubuntu | lunar | * |
Python-django | Ubuntu | mantic | * |
Python-django | Ubuntu | noble | * |
Python-django | Ubuntu | oracular | * |
Python-django | Ubuntu | trusty | * |
Python-django | Ubuntu | trusty/esm | * |
Python-django | Ubuntu | upstream | * |
Python-django | Ubuntu | xenial | * |
Specified quantities include size, length, frequency, price, rate, number of operations, time, and others. Code may rely on specified quantities to allocate resources, perform calculations, control iteration, etc. When the quantity is not properly validated, then attackers can specify malicious quantities to cause excessive resource allocation, trigger unexpected failures, enable buffer overflows, etc.