cve.bz

CVE-2021-3281

5.3 mediumEPSS 7.6%

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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
7.6% chance of exploitation in the next 30 days; higher than 94% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fvgf-6h6h-3322PyPIdjango>=2.2 <2.2.182.2.18
GHSA-fvgf-6h6h-3322PyPIdjango>=3.1 <3.1.63.1.6
GHSA-fvgf-6h6h-3322PyPIdjango>=3.0 <3.0.123.0.12
PYSEC-2021-9PyPIdjango>=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

Check your stackJSON