5.3medium
Regular expression denial-of-service in Django
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.85% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vm8q-m57g-pff3BIT-DJANGO-2024-27351PYSEC-2024-47
Description
In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewords_html template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django-rest-framework django_rest_framework | from 5.0 before 5.0.3 | CVE List |
| django (PyPI) | from 3.2 before 3.2.25, from 4.2 before 4.2.11, from 5.0 before 5.0.3 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 3.2 before 3.2.25, from 4.2 before 4.2.11, from 5.0 before 5.0.3 | NVD |
| django (Bitnami) | from 3.2.0 before 3.2.25, from 4.2.0 before 4.2.11, from 5.0.0 before 5.0.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewords_html template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
NVD (es)
En Django 3.2 anterior a 3.2.25, 4.2 anterior a 4.2.11 y 5.0 anterior a 5.0.3, el método django.utils.text.Truncator.words() (con html=True) y el filtro de plantilla truncatewords_html están sujetos a un potencial Ataque de denegación de servicio de expresión regular a través de una cadena manipulada. NOTA: este problema existe debido a una solución incompleta para CVE-2019-14232 y CVE-2023-43665.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27351 changed 2025-11-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vm8q-m57g-pff3 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-27351 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-47 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2024-27351 changed 2026-09-08 | Apache-2.0 |