Critical Vulnerabilities in Python-Django: Denial of Service Risks

python-django Updated 03 Oct 2025

Summary

04/10/2023
N/A
Yes i
Unrated
Not published

USN-6414-2: python-django vulnerabilities. Affects python-django versions < 1:1.11.11-1ubuntu1.21+esm2. Fixed in 1:1.11.11-1ubuntu1.21+esm2. 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 Your last release was probably never penetration tested 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 is known for its robustness and scalability. However, it has recently been identified as vulnerable to certain denial of service attacks due to improper handling of input, which can lead to resource exhaustion.

Vulnerability Detail

The vulnerabilities identified as CVE-2023-43665 and CVE-2023-41164 relate to the Django Truncator function and the handling of certain URIs with a large number of Unicode characters. These vulnerabilities allow remote attackers to exploit the framework by sending specially crafted inputs, potentially leading to resource consumption or application crashes, thereby causing denial of service.

How To Fix

Minimum fixed version

1:1.11.11-1ubuntu1.21+esm2

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 measure, you can limit the size of input data processed by Django to mitigate the risk of denial of service. This can be done by configuring your web server to reject requests that exceed a certain size limit.

Conclusion

The vulnerabilities in Python-Django pose significant risks, particularly regarding denial of service attacks. It is crucial for users to update to the latest patched version to protect their applications. Implementing temporary workarounds can help mitigate risks until updates are applied.

See every vulnerability recorded for python-django →

Share this vulnerability

FAQ

The vulnerabilities are CVE-2023-43665 and CVE-2023-41164, which relate to improper handling of long HTML inputs and certain URIs with excessive Unicode characters.

These vulnerabilities can allow attackers to consume server resources or crash the application, leading to denial of service for legitimate users.

Yes, a patched version of Python-Django is available. Users should update to version 1:1.11.11-1ubuntu1.21+esm2 to mitigate the risks.

If immediate updates are not possible, consider implementing input size restrictions on your web server as a temporary workaround.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner.

Related vulnerabilities

Recent vulnerabilities recorded for python-django.

How To Fix

Minimum fixed version

1:1.11.11-1ubuntu1.21+esm2

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