Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197188 (CVE-2007-5712)

Summary: dev-python/django < 0.96.1 Potential Accept-Language header DoS (CVE-2007-5712)
Product: Gentoo Security Reporter: Jan Meier <jan>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: trivial CC: python, seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.djangoproject.com/weblog/2007/oct/26/security-fix/
Whiteboard: ~3 [noglsa]
Package list:
Runtime testing required: ---

Description Jan Meier 2007-10-27 00:46:56 UTC
From the security page (http://www.djangoproject.com/weblog/2007/oct/26/security-fix/):

Today we're releasing a fix for a security vulnerability discovered in Django's internationalization framework. The complete details are below, but the executive summary is that you should updated to a fixed version of Django immediately.
We are releasing point-releases of all affected Django versions. You can download them at http://www.djangoproject.com/download/. Those tracking trunk development should "svn update" as soon as possible.
Please direct any questions about this release to django-users (http://groups.google.com/group/django-users).
DESCRIPTION OF VULNERABILITY
A per-process cache used by Django's internationalization ("i18n") system to store the results of translation lookups for particular values of the HTTP Accept-Language header used the full value of that header as a key. An attacker could take advantage of this by sending repeated requests with extremely large strings in the Accept-Language header, potentially causing a denial of service by filling available memory.
Due to limitations imposed by Web server software on the size of HTTP header fields, combined with reasonable limits on the number of requests which may be handled by a single server process over its lifetime, this vulnerability may be difficult to exploit. Additionally, it is only present when the "USE_I18N" setting in Django is "True" and the i18n middleware component is enabled*. Nonetheless, all users of affected versions of Django are encouraged to update.
AFFECTED VERSIONS
 ...
 Django 0.96
 ...

dev-python/django needs to be bumped from 0.96 to 0.96.1

Reproducible: Always
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2007-10-27 10:00:51 UTC
python and Seemant, please advise.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2007-10-27 12:00:18 UTC
I have an ebuild on the way in (already tested)
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2007-10-27 12:11:02 UTC
in cvs, no keywording or other things necessary (it was never stable)