CVE-2024-45230: Django CVE-2024-45230 and CVE-2024-45231
An issue was discovered in Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.
Other sources
Django is vulnerable to a denial of service, caused by improper input validation by the urlize and urlizetrunc function. By sending a specially crafted request, a remote attacker could exploit this vulnerability to cause a denial of service condition.
— IBM
urlize and urlizetrunc were subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.
— Red Hat
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.16-1 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 4.2.16 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 5.0.9 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 5.1.1 - Upgrade
Upgrade
redhat/djangoto a version that resolves this vulnerability.Fixed in 5.1.1 - Upgrade
Upgrade
redhat/djangoto a version that resolves this vulnerability.Fixed in 5.0.9 - Upgrade
Upgrade
redhat/djangoto a version that resolves this vulnerability.Fixed in 4.2.16 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 5.1.1 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 5.0.9 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 4.2.16 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch CVE-2024-45230 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch CVE-2024-45231
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45230?
CVE-2024-45230 is considered a potential denial-of-service vulnerability.
How do I fix CVE-2024-45230?
To fix CVE-2024-45230, update Django to version 5.1.1, 5.0.9, or 4.2.16.
Which versions of Django are affected by CVE-2024-45230?
Django versions prior to 5.1.1, 5.0.9, and 4.2.16 are affected by CVE-2024-45230.
Does CVE-2024-45230 affect all Django installations?
CVE-2024-45230 affects installations of Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16.
What is the primary risk associated with CVE-2024-45230?
The primary risk of CVE-2024-45230 is a potential denial-of-service attack through large inputs processed by the urlize() and urlizetrunc() filters.