2084AI Security Observatory

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

All Django vulnerabilities →

  • 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

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.