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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33571 |
| Alpine:v3.21 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33571 |
| Alpine:v3.22 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33571 |
| Alpine:v3.23 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33571 |
| Alpine:v3.24 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33571 |
| Debian:12 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33571 |
| Debian:13 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33571 |
| Debian:14 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33571 |
| PyPI | django | 2.2.24, 3.1.12, 3.2.4 | PYSEC-2021-99 |
| PyPI | django | 3.2.4 | GHSA-p99v-5w3c-jqq9 |
| PyPI | django | 3.1.12 | GHSA-p99v-5w3c-jqq9 |
| PyPI | django | 2.2.24 | GHSA-p99v-5w3c-jqq9 |
Affected products (as reported)
References
- https://docs.djangoproject.com/en/3.2/releases/security/
- https://groups.google.com/g/django-announce/c/sPyjSKMi8Eo
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases/
- https://security.netapp.com/advisory/ntap-20210727-0004/
- FEDORA-2022-e7fd530688 vendor-advisory
- https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc
- https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e
- https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d