CVE
CVE-2024-27351
CVE-2024-27351MED 5.3EPSS 80%
CNA 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 versions
- django≥ 5.0, < 5.0.3Fixed in 5.0.3
- django≥ 4.2, < 4.2.11Fixed in 4.2.11
- django≥ 3.2, < 3.2.25Fixed in 3.2.25
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- docs.djangoproject.com/en/5.0/releases/security/ · Release Notes, Vendor Advisory
- www.djangoproject.com/weblog/2024/mar/04/security-releases/ · Vendor Advisory
- github.com/django/django/commit/072963e4c4d0b3a7a8c5412bc0c7d27d1a9c35 · Patch
- github.com/django/django/commit/3394fc6132436eca89e997083bae9985fb7e76 · Patch
- github.com/django/django/commit/3c9a2771cc80821e041b16eb36c1c37af5349d · Patch
- github.com/advisories/GHSA-vm8q-m57g-pff3 · Third Party Advisory
- osv.dev/vulnerability/GHSA-vm8q-m57g-pff3 · Third Party Advisory
- docs.djangoproject.com/en/5.0/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2024/mar/04/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2024-47 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.