CVE-2021-28658
MEDIUM 5.3CVSS 3.1Directory Traversal in Django
In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.
- Published
- 6 Apr 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- BIT-django-2021-28658GHSA-xgxc-v2qg-chmhPYSEC-2021-6
- Sources
- NVDJSONOSV GHSA-xgxc-v2qg-chmhJSONOSV PYSEC-2021-6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.2, < 2.2.20 | 2.2.20 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 3.0, < 3.0.14 | 3.0.14 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 3.1, < 3.1.8 | 3.1.8 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | PyPI | django | >= 2.2a1, < 2.2.20 | 2.2.20 |
| OSV | PyPI | django | >= 3.0a1, < 3.0.14 | 3.0.14 |
| OSV | PyPI | django | >= 3.1a1, < 3.1.8 | 3.1.8 |
| OSV | PyPI | django | >= 2.2, < 2.2.20; >= 3.0, < 3.0.14; >= 3.1, < 3.1.8 | 2.2.20, 3.0.14, 3.1.8 |
References
- https://docs.djangoproject.com/en/3.1/releases/security/ · Vendor Advisory, WEB
- https://groups.google.com/g/django-announce/c/ePr5j-ngdPU · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/04/msg00008.html · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/
- https://security.netapp.com/advisory/ntap-20210528-0001/ · Third Party Advisory, WEB
- https://www.djangoproject.com/weblog/2021/apr/06/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2021-28658 · ADVISORY
- https://github.com/advisories/GHSA-xgxc-v2qg-chmh · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-6.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE · WEB
- https://pypi.org/project/Django · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 6 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Apr 2021)