USN-4043-1: Django vulnerabilities

1 July 2019

python-django vulnerabilities

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

  • Ubuntu 19.04
  • Ubuntu 18.10
  • Ubuntu 18.04 LTS
  • Ubuntu 16.04 LTS


Several security issues were fixed in Django.

Software Description

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


It was discovered that Django incorrectly handled certain inputs. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 18.04 LTS, Ubuntu 18.10 and Ubuntu 19.04. (CVE-2019-12308)

Gavin Wahl discovered that Django incorrectly handled HTTP detection when used behind a reverse-proxy. Client requests made via HTTP would cause incorrect API results and would not be redirected to HTTPS, contrary to expectations. (CVE-2019-12781)

Update instructions

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

Ubuntu 19.04
python-django - 1:1.11.20-1ubuntu0.1
python3-django - 1:1.11.20-1ubuntu0.1
Ubuntu 18.10
python-django - 1:1.11.15-1ubuntu1.3
python3-django - 1:1.11.15-1ubuntu1.3
Ubuntu 18.04 LTS
python-django - 1:1.11.11-1ubuntu1.4
python3-django - 1:1.11.11-1ubuntu1.4
Ubuntu 16.04 LTS
python-django - 1.8.7-1ubuntu5.9
python3-django - 1.8.7-1ubuntu5.9

To update your system, please follow these instructions:

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