CVE-2024-53907: Django CVE-2024-53907 and CVE-2024-53908
An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The striptags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/python-djangoto a version that resolves this vulnerability.Fixed in 3:4.2.17-1 - Upgrade
Upgrade
pip/djangoto a version that resolves this vulnerability.Fixed in 4.2.17 - Upgrade
Upgrade
pip/djangoto a version that resolves this vulnerability.Fixed in 5.0.10 - Upgrade
Upgrade
pip/djangoto a version that resolves this vulnerability.Fixed in 5.1.4 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 5.0.10 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 4.2.17 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 5.1.4 - Upgrade
Upgrade
djangoto a version that resolves this vulnerability.Fixed in 5.1.4 - Upgrade
Upgrade
djangoto a version that resolves this vulnerability.Fixed in 5.0.10 - Upgrade
Upgrade
djangoto a version that resolves this vulnerability.Fixed in 4.2.17
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53907?
CVE-2024-53907 has been classified as a potential denial-of-service vulnerability.
How do I fix CVE-2024-53907?
To mitigate CVE-2024-53907, upgrade to Django versions 5.1.4, 5.0.10, or 4.2.17 or later.
Which versions of Django are affected by CVE-2024-53907?
Django versions prior to 5.1.4, 5.0.10, and 4.2.17 are affected by CVE-2024-53907.
What methods are vulnerable in CVE-2024-53907?
The strip_tags() method and striptags template filter in Django are vulnerable due to specific inputs.
What types of attacks can CVE-2024-53907 result in?
CVE-2024-53907 can lead to denial-of-service attacks via large sequences of nested incomplete HTML entities.