Vulnerability · Published Jun 8, 2021 · Assigned by mitre

CVE-2021-33571

High 7.5

In plain English

A high-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 5.3% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)5.3%top 7.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validate_ipv4_address, and validate_ipv46_address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addresses. (validate_ipv4_address and validate_ipv46_address are unaffected with Python 3.9.5+..) .

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-django3.1.13-r0ALPINE-CVE-2021-33571
Alpine:v3.21py3-django3.1.13-r0ALPINE-CVE-2021-33571
Alpine:v3.22py3-django3.1.13-r0ALPINE-CVE-2021-33571
Alpine:v3.23py3-django3.1.13-r0ALPINE-CVE-2021-33571
Alpine:v3.24py3-django3.1.13-r0ALPINE-CVE-2021-33571
Debian:12python-django2:2.2.24-1DEBIAN-CVE-2021-33571
Debian:13python-django2:2.2.24-1DEBIAN-CVE-2021-33571
Debian:14python-django2:2.2.24-1DEBIAN-CVE-2021-33571
PyPIdjango2.2.24, 3.1.12, 3.2.4PYSEC-2021-99
PyPIdjango3.2.4GHSA-p99v-5w3c-jqq9
PyPIdjango3.1.12GHSA-p99v-5w3c-jqq9
PyPIdjango2.2.24GHSA-p99v-5w3c-jqq9

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References