Critical Denial-of-Service Vulnerability in Python-Django Package

python-django Updated 03 Oct 2025

Summary

03/09/2024
N/A
No i
High
7.5

UBUNTU-CVE-2024-45230: 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. Affects python-django versions 1.5.4-1ubuntu1 – 1.6.11-0ubuntu1.3+esm7. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python-Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It is widely used for building web applications and offers features such as an ORM, routing, and templating. However, recent vulnerabilities have raised concerns about its security, particularly regarding the handling of large inputs in certain template filters.

Vulnerability Detail

An issue was discovered in Django versions 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The vulnerability lies in the urlize() and urlizetrunc() template filters, which are susceptible to a potential denial-of-service attack when processing very large inputs containing specific sequences of characters. This could lead to application crashes or unresponsiveness, severely impacting user experience and application availability.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If immediate updating is not feasible, consider implementing input validation to limit the size and content of inputs processed by the urlize() and urlizetrunc() filters. This can help mitigate the risk of denial-of-service attacks.

Conclusion

In summary, the identified vulnerability in the Python-Django package poses a significant risk of denial-of-service attacks due to improper handling of large inputs in specific template filters. It is crucial for users to update to the patched versions to mitigate this risk and ensure the security and availability of their applications.

See every vulnerability recorded for python-django →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Django versions 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16 are affected by this vulnerability.

You can use Vulert, which allows you to monitor and alert in real-time for open-source vulnerabilities in your software. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner without any signup.

The potential consequences include application crashes and unresponsiveness, leading to a denial-of-service condition that affects user access and experience.

No subscription is required to access the patched version of the Python-Django package for Ubuntu users.

Related vulnerabilities

Recent vulnerabilities recorded for python-django.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback