Memory Consumption Denial of Service in Django
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.