CVE-2024-27351

MEDIUM
Published Mar 15, 2024 Modified Nov 4, 2025 CWE-1333

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.

Is your site exposed to CVE-2024-27351?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H

Weakness Type (CWE)

CWE-1333 CWE-1333

Affected Products

Vendor Product
djangoproject django
djangoproject django
djangoproject django

References

Other References

Frequently Asked Questions

What is CVE-2024-27351? +
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. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2024-27351? +
CVE-2024-27351 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-27351? +
CVE-2024-27351 affects products from djangoproject, specifically: django. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-27351? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-27351 — free, no signup required.