Bug 737366 - (CVE-2011-4136, CVE-2011-4137, CVE-2011-4138, CVE-2011-4139, CVE-2011-4140) CVE-2011-4136 CVE-2011-4137 CVE-2011-4138 CVE-2011-4139 CVE-2011-4140 Django: v1.3.1, v1.2.7 multiple security flaws
CVE-2011-4136 CVE-2011-4137 CVE-2011-4138 CVE-2011-4139 CVE-2011-4140 Django:...
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 742466
  Show dependency treegraph
Reported: 2011-09-11 10:04 EDT by Jan Lieskovsky
Modified: 2014-08-15 15:30 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-08-15 15:30:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Local text copy of Django upstream archive post from 2011-09-09 (10.75 KB, text/plain)
2011-09-11 10:06 EDT, Jan Lieskovsky
no flags Details

  None (edit)
Description Jan Lieskovsky 2011-09-11 10:04:29 EDT
Multiple security flaws have been recently addressed in the v1.3.1 and v1.2.7 versions of the Django Python Web framework (from [1]):
1, Session manipulation,
2, Denial of service attack via URLField,
3, URLField redirection,
4, Host header cache poisoning,
5, Host header and CSRF,
6, Cross-subdomain CSRF attacks,
7, DEBUG pages and sensitive POST data

[1] https://www.djangoproject.com/weblog/2011/sep/09/
Comment 1 Jan Lieskovsky 2011-09-11 10:06:08 EDT
Created attachment 522611 [details]
Local text copy of Django upstream archive post from 2011-09-09
Comment 2 Jan Lieskovsky 2011-09-11 10:11:05 EDT
CVE(s) Request:
[2] http://www.openwall.com/lists/oss-security/2011/09/11/1
Comment 3 Jan Lieskovsky 2011-09-11 10:14:03 EDT
These issues are scheduled to be addressed in the following releases for Fedora:
1) Django-1.3.1-2.fc14 for Fedora-14,
2) Django-1.3.1-2.fc15 for Fedora-15,

and in the following release for EPEL-6:
3) Django-1.2.6-2.el6

The above updates has been pushed to Fedora -testing repository and once they have passed the required testing, they will be pushed to -stable repository.
Comment 4 Vincent Danen 2011-09-13 12:32:30 EDT
Please use Django 1.2.7; the patch was not applied in the 1.2.6 release:

Comment 5 Brian Likosar 2011-09-29 18:37:27 EDT
Are there tracking bugs for these specific distributions?  I'm interested in the fix for EPEL, and I'd like to help with the testing if possible.
Comment 6 Jan Lieskovsky 2011-09-30 05:05:21 EDT
Created Django tracking bugs for this issue

Affects: epel-6 [bug 742466]
Comment 7 Jan Lieskovsky 2011-09-30 05:07:33 EDT
Hi Brian,

(In reply to comment #5)
> Are there tracking bugs for these specific distributions?

No there aren't particular Fedora release specific bugs (since the updates were scheduled sooner than this main bug existed).

> I'm interested in
> the fix for EPEL, and I'd like to help with the testing if possible.

But looks the latest version in EPEL-6 is still Django-v1.2.6 based, thus created new one (previous comment) to ensure update to v1.2.7.

Hope this helps, Jan.
Comment 8 Jan Lieskovsky 2011-10-19 09:25:04 EDT
The CVE identifiers: CVE-2011-4136, CVE-2011-4137, CVE-2011-4138, CVE-2011-4139, CVE-2011-4140 with the following description have been assigned to these issues by Common Vulnerabilities and Exposures:

1) * Name: CVE-2011-4136:

django.contrib.sessions in Django before 1.2.7 and 1.3.x before 1.3.1,
when session data is stored in the cache, uses the root namespace for
both session identifiers and application-data keys, which allows
remote attackers to modify a session by triggering use of a key that
is equal to that session's identifier.

[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4136
[2] http://openwall.com/lists/oss-security/2011/09/11/1
[3] http://openwall.com/lists/oss-security/2011/09/13/2
[4] https://www.djangoproject.com/weblog/2011/sep/09/
[5] https://www.djangoproject.com/weblog/2011/sep/10/127/

2) * Name: CVE-2011-4137:

The verify_exists functionality in the URLField implementation in
Django before 1.2.7 and 1.3.x before 1.3.1 relies on Python libraries
that attempt access to an arbitrary URL with no timeout, which allows
remote attackers to cause a denial of service (resource consumption)
via a URL associated with (1) a slow response, (2) a completed TCP
connection with no application data sent, or (3) a large amount of
application data, a related issue to CVE-2011-1521.

[6]  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4137
[7]  http://openwall.com/lists/oss-security/2011/09/11/1
[8]  http://openwall.com/lists/oss-security/2011/09/13/2
[9]  http://openwall.com/lists/oss-security/2011/09/15/5
[10] https://www.djangoproject.com/weblog/2011/sep/09/
[11] https://www.djangoproject.com/weblog/2011/sep/10/127/

3) * Name: CVE-2011-4138:

The verify_exists functionality in the URLField implementation in
Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's
validity through a HEAD request, but then uses a GET request for the
new target URL in the case of a redirect, which might allow remote
attackers to trigger arbitrary GET requests with an unintended source
IP address via a crafted Location header.

[12] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4138
[13] http://openwall.com/lists/oss-security/2011/09/11/1
[14] http://openwall.com/lists/oss-security/2011/09/13/2
[15] https://www.djangoproject.com/weblog/2011/sep/09/
[16] https://www.djangoproject.com/weblog/2011/sep/10/127/

4) * Name: CVE-2011-4139:

Django before 1.2.7 and 1.3.x before 1.3.1 uses a request's HTTP Host
header to construct a full URL in certain circumstances, which allows
remote attackers to conduct cache poisoning attacks via a crafted

[17] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4139
[18] http://openwall.com/lists/oss-security/2011/09/11/1
[19] http://openwall.com/lists/oss-security/2011/09/13/2
[20] https://www.djangoproject.com/weblog/2011/sep/09/
[21] https://www.djangoproject.com/weblog/2011/sep/10/127/

5) * Name: CVE-2011-4140:

The CSRF protection mechanism in Django through 1.2.7 and 1.3.x
through 1.3.1 does not properly handle web-server configurations
supporting arbitrary HTTP Host headers, which allows remote attackers
to trigger unauthenticated forged requests via vectors involving a DNS
CNAME record and a web page containing JavaScript code.

[22] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4140
[23] http://openwall.com/lists/oss-security/2011/09/11/1
[24] http://openwall.com/lists/oss-security/2011/09/13/2
[25] https://www.djangoproject.com/weblog/2011/sep/09/
[26] https://www.djangoproject.com/weblog/2011/sep/10/127/
Comment 9 Kurt Seifried 2014-08-15 15:30:48 EDT
This has been addressed in Fedora/EPEL:


Note You need to log in before you can comment on or make changes to this bug.