BREACHSPIDER
CVE databaseVendorsIntelResearchFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-33203 in Djangoproject Django and 1 more product

Medium 4.9

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 appli...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.14.9
EPSS2.5%
EPSS percentile85th
FixSee advisory

Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Djangoproject Django < 2.2.24 ≥ 3.0.0, < 3.1.12 ≥ 3.2.0, < 3.2.4
Fedoraproject Fedora 35

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-33203
BreachSpider IDBS-2021-GLOBAL-277531-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Published2021-06-08
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

Related attack patterns (CAPEC)

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

CAPEC-126 Path Traversal via CWE-22

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Django versions prior to 2.2.24, 3.1.12, and 3.2.4 are vulnerable to a directory traversal attack through the django.contrib.admindocs component, allowing staff members to check the existence of arbitrary files and potentially view their contents if templates have been customized.

The vulnerability exists in the TemplateDetailView view of the django.contrib.admindocs component. An attacker with staff privileges can exploit this to traverse directories and check for the existence of files. If the default templates have been modified to display file contents, the attacker can also view the contents of these files.

Questions

What is CVE-2021-33203?

Django versions prior to 2.2.24, 3.1.12, and 3.2.4 are vulnerable to a directory traversal attack through the django.contrib.admindocs component, allowing staff members to check the existence of arbitrary files and potentially view their contents if templates have been customized.

What is the CVSS score for CVE-2021-33203?

CVE-2021-33203 has CVSS 4.9 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N. EPSS: 2.5%.

Is CVE-2021-33203 actively exploited?

No confirmed active exploitation of CVE-2021-33203 as of 2026-09-25.

How do I remediate CVE-2021-33203?

Priority: HIGH. Advisory: https://docs.djangoproject.com/en/3.2/releases/security/ PSIRT: [email protected]

What systems are affected by CVE-2021-33203?

CVE-2021-33203 affects Djangoproject Django; Fedoraproject Fedora.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Djangoproject","product":"Django","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.