CVE-2021-33203: Path Traversal in Django
4.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53016%
CWE
Published
6/10/2021
Updated
9/20/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
django | pip | < 2.2.24 | 2.2.24 |
Django | pip | >= 3.0, < 3.1.12 | 3.1.12 |
Django | pip | >= 3.2, < 3.2.4 | 3.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper path handling in TemplateDetailView's context data generation. The commit diff shows the vulnerable path concatenation was replaced with safe_join
, which prevents directory traversal. The CVE description explicitly mentions TemplateDetailView as the entry point, and the patch adds path sanitation to this specific code section.