USN-2169-2: Django regression

Ubuntu Security Notice USN-2169-2

22nd April, 2014

python-django regression

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

Summary

USN-2169-1 introduced a regression in Django.

Software description

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

Details

USN-2169-1 fixed vulnerabilities in Django. The upstream security patch
for CVE-2014-0472 introduced a regression for certain applications. This
update fixes the problem.

Original advisory details:

Benjamin Bach discovered that Django incorrectly handled dotted Python
paths when using the reverse() function. An attacker could use this issue
to cause Django to import arbitrary modules from the Python path, resulting
in possible code execution. (CVE-2014-0472)

Paul McMillan discovered that Django incorrectly cached certain pages that
contained CSRF cookies. An attacker could possibly use this flaw to obtain
a valid cookie and perform attacks which bypass the CSRF restrictions.
(CVE-2014-0473)

Michael Koziarski discovered that Django did not always perform explicit
conversion of certain fields when using a MySQL database. An attacker
could possibly use this issue to obtain unexpected results. (CVE-2014-0474)

Update instructions

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

Ubuntu 14.04 LTS:
python-django 1.6.1-2ubuntu0.2
Ubuntu 13.10:
python-django 1.5.4-1ubuntu1.2
Ubuntu 12.10:
python-django 1.4.1-2ubuntu0.6
Ubuntu 12.04 LTS:
python-django 1.3.1-4ubuntu1.10
Ubuntu 10.04 LTS:
python-django 1.1.1-2ubuntu1.11

To update your system, please follow these instructions: https://wiki.ubuntu.com/Security/Upgrades.

In general, a standard system update will make all the necessary changes.

References

LP: 1311433