Security mailing lists by PureSourceCode

CVE-2021-28658

MEDIUM 5.3CVSS 3.1

Directory 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 2.2, < 2.2.20 2.2.20
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.0, < 3.0.14 3.0.14
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.1, < 3.1.8 3.1.8
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD fedoraproject fedora
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.