Path Traversal in Djangoproject Django

CVE-2021-3281

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.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.076 (93.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-3281?
CVE-2021-3281 is a medium-severity vulnerability in Djangoproject Django, classified under Path Traversal. CVSS score: 5.3/10. Published 2021-02-02.
How severe is CVE-2021-3281?
Medium severity. CVSS v3 base score is 5.3 out of 10.
Is CVE-2021-3281 known to be exploited?
5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.