---
title: CVE-2021-33203
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/CVE-2021-33203
---

# CVE-2021-33203

Publication date 2 June 2021

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**4.9 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2021-33203#impact-score)

Toggle side navigation

## Description

Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a
potential directory traversal via django.contrib.admindocs. Staff members
could use the TemplateDetailView view to check the existence of arbitrary
files. Additionally, if (and only if) the default admindocs templates have
been customized by application developers to also show file contents, then
not only the existence but also the file contents would have been exposed.
In other words, there is directory traversal outside of the template root
directories.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python-django | 22.04 LTS jammy | Fixed 2:2.2.24-1 |
| 21.10 impish | Fixed 2:2.2.24-1 |
| 21.04 hirsute | Fixed 2:2.2.20-1ubuntu0.2 |
| 20.10 groovy | Fixed 2:2.2.16-1ubuntu0.5 |
| 20.04 LTS focal | Fixed 2:2.2.12-1ubuntu0.7 |
| 18.04 LTS bionic | Fixed 1:1.11.11-1ubuntu1.14 |
| 16.04 LTS xenial | Fixed 1.8.7-1ubuntu5.15+esm3  Ubuntu Pro |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

4.9 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | High |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 4.9 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33203)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-33203)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2021-33203)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2021-33203)

### Related Ubuntu Security Notices (USN)

+ [USN-4975-1](https://usn.ubuntu.com/USN-4975-1)
+ Django vulnerabilities
+ 2 June 2021

+ [USN-4975-2](https://usn.ubuntu.com/USN-4975-2)
+ Django vulnerability
+ 7 June 2021

### Other references

* <https://www.djangoproject.com/weblog/2021/jun/02/security-releases/>
* <https://www.cve.org/CVERecord?id=CVE-2021-33203>
