Live threats

All CVEs / Djangoproject

CVE-2024-27351Djangoproject Django

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.4%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Mar 15, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 3.2 < 3.2.25 3.2.25 pip install "django>=3.2.25"
PyPI django ≥ 4.2 < 4.2.11 4.2.11 pip install "django>=4.2.11"
PyPI django ≥ 5.0 < 5.0.3 5.0.3 pip install "django>=5.0.3"
PyPI django ≥ 3.2 < 3.2.25 3.2.25 pip install "django>=3.2.25"
PyPI django ≥ 4.2 < 4.2.11 4.2.11 pip install "django>=4.2.11"
PyPI django ≥ 5.0 < 5.0.3 5.0.3 pip install "django>=5.0.3"

Per OSV / GitHub Advisories (GHSA-vm8q-m57g-pff3, PYSEC-2024-47). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 3.2 < 3.2.25
djangoprojectdjango≥ 4.2 < 4.2.11
djangoprojectdjango≥ 5.0 < 5.0.3

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.