Denial of Service Vulnerability in Python-Django: USN-6674-2

python-django Updated 03 Oct 2025

Summary

04/03/2024
N/A
Yes i
Unrated
Not published

USN-6674-2: python-django vulnerability. Affects python-django versions < 1:1.11.11-1ubuntu1.21+esm4. Fixed in 1:1.11.11-1ubuntu1.21+esm4. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 provides features such as an ORM, URL routing, and templating. The vulnerability in question affects Django's Truncator function, which is responsible for handling HTML input. This issue can lead to resource consumption, potentially resulting in a denial of service for applications using this framework.

Vulnerability Detail

The vulnerability arises from the Django Truncator function's improper handling of very long HTML input. Discovered by Seokchan Yoon, this flaw allows a remote attacker to exploit the function, causing excessive resource consumption. If successfully exploited, this could lead to a denial of service, making the application unresponsive to legitimate users. The vulnerability is tracked under CVE-2024-27351.

How To Fix

Minimum fixed version

1:1.11.11-1ubuntu1.21+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-django

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can limit the input size for the Truncator function to prevent excessive resource consumption. This can be done by implementing input validation in your application to restrict the length of HTML input processed by Django.

Conclusion

The vulnerability in Python-Django's Truncator function poses a significant risk of denial of service due to improper handling of long HTML inputs. It is crucial for users to update to the patched version to mitigate this risk and ensure the stability of their applications.

See every vulnerability recorded for python-django →

Share this vulnerability

FAQ

The vulnerability allows for denial of service due to improper handling of long HTML input by the Django Truncator function.

The vulnerability was discovered by Seokchan Yoon.

If exploited, this vulnerability can lead to resource exhaustion, causing the application to become unresponsive.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, the patched version is 1:1.11.11-1ubuntu1.21+esm4, and it is recommended to update to this version.

Related vulnerabilities

Recent vulnerabilities recorded for python-django.

How To Fix

Minimum fixed version

1:1.11.11-1ubuntu1.21+esm4

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-django

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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