---
title: 'USN-5204-1: Django vulnerabilities | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-5204-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-5204-1

---

# USN-5204-1: Django vulnerabilities

Publication date

5 January 2022

Overview

Several security issues were fixed in Django.

Releases

[21.10](https://ubuntu.com/security/notices?release=impish)
[21.04](https://ubuntu.com/security/notices?release=hirsute)
[20.04 LTS](https://ubuntu.com/security/notices?release=focal)
[18.04 LTS](https://ubuntu.com/security/notices?release=bionic)

---

Open side navigation

## Packages

* [python-django](https://ubuntu.com/security/cves?package=python-django) - High-level Python web development framework

## Details

Chris Bailey discovered that Django incorrectly handled evaluating
submitted passwords. A remote attacker could possibly use this issue to
consume resources, resulting in a denial of service. ([CVE-2021-45115](https://ubuntu.com/security/CVE-2021-45115))

Dennis Brinkrolf discovered that Django incorrectly handled the dictsort
template filter. A remote attacker could possibly use this issue to obtain
sensitive information. ([CVE-2021-45116](https://ubuntu.com/security/CVE-2021-45116))

Dennis Brinkrolf discovered that Django incorrectly handled certain file
names. A remote attacker could possibly use this issue to save files to
arbitrary filesystem locations. ([CVE-2021-45452](https://ubuntu.com/security/CVE-2021-45452))

## Update instructions

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

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

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

| Ubuntu Release | Package Version |
| --- | --- |
| 21.10 impish | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.24-1ubuntu1.2](https://launchpad.net/ubuntu/+source/python-django/2:2.2.24-1ubuntu1.2) | | |
| 21.04 hirsute | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.20-1ubuntu0.4](https://launchpad.net/ubuntu/+source/python-django/2:2.2.20-1ubuntu0.4) | | |
| 20.04 LTS focal | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.12-1ubuntu0.9](https://launchpad.net/ubuntu/+source/python-django/2:2.2.12-1ubuntu0.9) | | |
| 18.04 LTS bionic | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [1:1.11.11-1ubuntu1.15](https://launchpad.net/ubuntu/+source/python-django/1:1.11.11-1ubuntu1.15) | | |
| [python-django](https://launchpad.net/ubuntu/+source/python-django) –  [1:1.11.11-1ubuntu1.15](https://launchpad.net/ubuntu/+source/python-django/1:1.11.11-1ubuntu1.15) | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2021-45452](https://ubuntu.com/security/CVE-2021-45452)
* [CVE-2021-45116](https://ubuntu.com/security/CVE-2021-45116)
* [CVE-2021-45115](https://ubuntu.com/security/CVE-2021-45115)
