CVE-2024-27351: Django · Regular Expression Denial-of-service
Affects DjangoSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.2.25 when convenient.
Data as of 4 Nov 2026, 17:43 UTC
- Patch
- Available – fixed in 3.2.25, 4.2.11, 5.0.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 15 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Upgrade Django to 3.2.25; Django to 4.2.11; Django to 5.0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIDjango | Affected
| Fixed in
|
| PyPIDjango | Affected
| Fixed in
|
| PyPIDjango | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and users should upgrade to Django versions 3.2.25, 4.2.11, or 5.0.3 or later to remediate this vulnerability. Applying these official fixes will prevent exploitation of the ReDoS condition. No additional mitigations are specified or required beyond upgrading.
Description
A regular expression denial-of-service (ReDoS) vulnerability exists in Django versions 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3. The issue affects the django.utils.text.Truncator.words() method when used with html=True and the truncatewords_html template filter. This vulnerability arises from an incomplete fix of previous related CVEs and can be triggered by crafted input strings causing excessive processing time.
References
- nvd.nist.gov/vuln/detail/CVE-2024-27351 (opens in a new tab)
- github.com/django/django/commit/072963e4c4d0b3a7a8c5412bc0c7d27d1a9c3521 (opens in a new tab)
- github.com/django/django/commit/3394fc6132436eca89e997083bae9985fb7e761e (opens in a new tab)
- github.com/django/django/commit/3c9a2771cc80821e041b16eb36c1c37af5349d4a (opens in a new tab)
- docs.djangoproject.com/en/5.0/releases/security (opens in a new tab)
- github.com/django/django (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-47.yaml (opens in a new tab)
- groups.google.com/forum/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D (opens in a new tab)
- djangoproject.com/weblog/2024/mar/04/security-releases (opens in a new tab)
- openwall.com/lists/oss-security/2024/03/04/1 (opens in a new tab)