Skip to main content
← All vulnerabilities
CVE-2024-27351GHSA-VM8Q-M57G-PFF3BIT-DJANGO-2024-27351PYSEC-2024-47

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 th

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.25, 4.2.11, 5.0.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 3.2 · fixed in 3.2.25

  • djangoPyPI

    From 4.2 · fixed in 4.2.11

  • djangoPyPI

    From 5.0 · fixed in 5.0.3

  • djangoPyPI

    From 3.2 · fixed in 3.2.25; From 4.2 · fixed in 4.2.11; From 5.0 · fixed in 5.0.3

References 7

groups.google.com

docs.djangoproject.com

djangoproject.com

lists.fedoraproject.org

openwall.com