Bug 1090588 (CVE-2014-0472)

Summary: CVE-2014-0472 python-django: unexpected code execution using reverse()
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abaron, aortega, apevec, athomas, ayoung, bkabrda, bkearney, chrisw, gkotton, jdornak, katello-bugs, kseifried, lhh, markmc, mhroncok, michel, mrunge, rbryant, rhos-maint, sclewis, tjay, yeylon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: django 1.4.11, django 1.5.6, django 1.6.3, django 1.7b2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-26 23:40:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1027766, 1090687, 1090689, 1161009    
Bug Blocks: 1090594, 1129960    

Description Vincent Danen 2014-04-23 16:45:34 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2014-0472 to
the following vulnerability:

Name: CVE-2014-0472
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0472
Assigned: 20131219
Reference: https://www.djangoproject.com/weblog/2014/apr/21/security/

The django.core.urlresolvers.reverse function in Django before 1.4.11,
1.5.x before 1.5.6, 1.6.x before 1.6.3, and 1.7.x before 1.7 beta 2
allows remote attackers to import and execute arbitrary Python modules
by leveraging a view that constructs URLs using user input and a
"dotted Python path."

Comment 2 Vincent Danen 2014-04-23 23:16:20 UTC
Note that the initial upstream patch for this introduced a regression.  The following patch corrects that regression:

https://github.com/django/django/commit/6915220ff9d6eeb2a669421d06bce9403ed6480c


The original upstream patch is:

https://github.com/django/django/commit/4352a50871e239ebcdf64eee6f0b88e714015c1b

(for the 1.6.x branch)

Comment 5 Murray McAllister 2014-04-24 01:49:22 UTC
Acknowledgements:

Red Hat would like to thank the upstream Django project for reporting this issue. Upstream acknowledges Benjamin Bach as the original reporter.

Comment 6 errata-xmlrpc 2014-04-30 19:04:45 UTC
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2014:0457 https://rhn.redhat.com/errata/RHSA-2014-0457.html

Comment 7 errata-xmlrpc 2014-04-30 19:05:15 UTC
This issue has been addressed in following products:

  OpenStack 4 for RHEL 6

Via RHSA-2014:0456 https://rhn.redhat.com/errata/RHSA-2014-0456.html