Security mailing lists by PureSourceCode

CVE-2021-3281

MEDIUM 5.3CVSS 3.1

Django Directory Traversal via archive.extract

In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.

Published
2 Feb 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-22
Also known as
BIT-django-2021-3281GHSA-fvgf-6h6h-3322PYSEC-2021-9
Sources
NVDJSONOSV GHSA-fvgf-6h6h-3322JSONOSV PYSEC-2021-9JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/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:N/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 2.2, < 2.2.18 2.2.18
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.0, < 3.0.12 3.0.12
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.1, < 3.1.6 3.1.6
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
NVD netapp snapcenter
cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*
(no version)
OSV PyPI django >= 2.2, < 2.2.18 2.2.18
OSV PyPI django >= 3.1, < 3.1.6 3.1.6
OSV PyPI django >= 3.0, < 3.0.12 3.0.12
OSV PyPI django >= 2.2, < 2.2.18; >= 3.0, < 3.0.12; >= 3.1, < 3.1.6 2.2.18, 3.0.12, 3.1.6

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Feb 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Feb 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Mar 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.