Vulnerability · Published Feb 2, 2021 · Assigned by mitre

CVE-2021-3281

Medium 5.3

In plain English

A medium-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.6% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)7.6%top 5.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-django3.1.6-r0ALPINE-CVE-2021-3281
Alpine:v3.21py3-django3.1.6-r0ALPINE-CVE-2021-3281
Alpine:v3.22py3-django3.1.6-r0ALPINE-CVE-2021-3281
Alpine:v3.23py3-django3.1.6-r0ALPINE-CVE-2021-3281
Alpine:v3.24py3-django3.1.6-r0ALPINE-CVE-2021-3281
Debian:12python-django2:2.2.18-1DEBIAN-CVE-2021-3281
Debian:13python-django2:2.2.18-1DEBIAN-CVE-2021-3281
Debian:14python-django2:2.2.18-1DEBIAN-CVE-2021-3281
PyPIdjango2.2.18, 3.0.12, 3.1.6PYSEC-2021-9
PyPIdjango3.0.12GHSA-fvgf-6h6h-3322
PyPIdjango3.1.6GHSA-fvgf-6h6h-3322
PyPIdjango2.2.18GHSA-fvgf-6h6h-3322

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References