CVE-2024-27351

MEDIUMCVSS 5.3/10EPSS 1.85%

Last modified

CVE-2024-27351 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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.. EPSS estimates a 1.85% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
5.3/10

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

EPSS Probability
1.85%

76.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 3.2, < 3.2.25
DjangoprojectDjango>= 4.2, < 4.2.11
DjangoprojectDjango>= 5.0, < 5.0.3

References

Timeline

Published
Last Modified
Status
Modified

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.
How severe is CVE-2024-27351?
CVE-2024-27351 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 1.85% probability of exploitation in the next 30 days.
How do I fix CVE-2024-27351?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-27351?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST