SecurityContext

CVE-2021-3281: Django - Path Traversal

  • Cve: CVE-2021-3281
  • Name: Django - Path Traversal
  • Description: 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.
  • Impact: Attackers can extract files to arbitrary locations, potentially leading to code execution or system compromise.
  • Remediation: Update to Django 2.2.18, 3.0.12, 3.1.6 or later versions.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Epss score: 0.07605
  • Epss percentile: 0.94694
  • Assignee: [email protected]
  • Published at: 2021-02-02T07:15:14Z
  • Age in days: 2121
  • Modified at: 2026-06-17T04:04:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 5
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3281
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Hackerone

  • Reports: 2
  • Rank: 3806

Public exploits

UrlSourceAdded date
https://github.com/lwzSoviet/CVE-2021-3281poc-in-github2021-07-05

References

Same in every row:

  • Source: nvd
UrlTags
https://docs.djangoproject.com/en/3.1/releases/security/Patch, Vendor Advisory
https://www.djangoproject.com/weblog/2021/feb/01/security-releases/Vendor Advisory
https://security.netapp.com/advisory/ntap-20210226-0004/Third Party Advisory
https://groups.google.com/forum/#%21forum/django-announce
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
djangoproject:django>= 3.1, < 3.1.6; >= 3.0, < 3.0.12; >= 2.2, < 2.2.18/v1/products/djangoproject/django
fedoraproject:fedora= 33/v1/products/fedoraproject/fedora
netapp:snapcenterall versions/v1/products/netapp/snapcenter

Projects

RepositoryLink kindsIndexedUrl
django/djangocommit, fix, packageyes/v1/repositories/django/django

Index

  • Repositories: 98
  • Repositories high signal: 37
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-07-05
  • Remote: yes
  • Hackerone reports: 2
  • Exposed hosts: 2404431
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since