Memory Consumption Denial of Service in Django

python-django Updated 02 Oct 2025

Summary

30/10/2007
N/A
Yes i
Unrated
Not published

CVE-2007-5712: The internationalization (i18n) framework in Django 0.91, 0.95, 0.95.1, and 0.96, and as used in other products such as PyLucid, when the USE_I18N option and the i18n component are enabled, allows remote attackers to cau... Affects python-django versions < 0.96-1.1. Fixed in 0.96-1.1. 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

Django is a popular web framework for building Python applications. It provides a comprehensive set of tools and libraries for developing secure and scalable web applications. The vulnerability identified as CVE-2007-5712 affects Django versions 0.91, 0.95, 0.95.1, and 0.96, as well as other products that utilize the Django internationalization (i18n) framework. When the USE_I18N option and the i18n component are enabled, an attacker can exploit this vulnerability to cause a denial of service by sending multiple HTTP requests with large Accept-Language headers.

Vulnerability Detail

The vulnerability (CVE-2007-5712) arises from a flaw in the internationalization framework of Django. By sending a large number of HTTP requests with oversized Accept-Language headers, an attacker can exhaust the server's memory resources, leading to a denial of service condition. This vulnerability can be exploited remotely, and its impact is limited to memory consumption, causing service disruption.

How To Fix

Minimum fixed version

0.96-1.1

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

There is no known workaround for this vulnerability. It is essential to apply the official fix by upgrading to a patched version of Django.

Conclusion

The memory consumption denial of service vulnerability in Django can be mitigated by upgrading to a patched version of the framework. It is crucial for users to keep their Django installations up to date to ensure the security and stability of their web applications. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for python-django →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service condition by consuming excessive memory resources on the server, causing service disruption.

Yes, this vulnerability can be exploited remotely by sending specially crafted HTTP requests.

Django versions 0.91, 0.95, 0.95.1, and 0.96 are affected by this vulnerability.

No, there are no known workarounds for this vulnerability. Upgrading to a patched version of Django is the recommended solution.

There is no evidence of active exploitation of this vulnerability at the moment.

Related vulnerabilities

Recent vulnerabilities recorded for python-django.

How To Fix

Minimum fixed version

0.96-1.1

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