USN-2212-1: Django vulnerabilities

15 May 2014

python-django vulnerabilities

A security issue affects these releases of Ubuntu and its derivatives:

  • Ubuntu 14.04 LTS
  • Ubuntu 13.10
  • Ubuntu 12.10
  • Ubuntu 12.04 LTS
  • Ubuntu 10.04 LTS


Django applications could be made to expose sensitive information over the network.

Software Description

  • python-django - High-level Python web development framework


Stephen Stewart, Michael Nelson, Natalia Bidart and James Westby discovered that Django improperly removed Vary and Cache-Control headers from HTTP responses when replying to a request from an Internet Explorer or Chrome Frame client. An attacker may use this to retrieve private data or poison caches. This update removes workarounds for bugs in Internet Explorer 6 and 7. (CVE-2014-1418)

Peter Kuma and Gavin Wahl discovered that Django did not correctly validate some malformed URLs, which are accepted by some browsers. An attacker may use this to cause unexpected redirects. An update has been provided for 12.04 LTS, 12.10, 13.10, and 14.04 LTS; this issue remains unfixed for 10.04 LTS as no “is_safe_url()” functionality existed in this version.

Update instructions

The problem can be corrected by updating your system to the following package versions:

Ubuntu 14.04 LTS
python-django - 1.6.1-2ubuntu0.3
Ubuntu 13.10
python-django - 1.5.4-1ubuntu1.3
Ubuntu 12.10
python-django - 1.4.1-2ubuntu0.7
Ubuntu 12.04 LTS
python-django - 1.3.1-4ubuntu1.11
Ubuntu 10.04 LTS
python-django - 1.1.1-2ubuntu1.12

To update your system, please follow these instructions:

After a standard system update you need to restart Django applications to make all the necessary changes.