7.5high
Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 5.26% (higher than 93% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-p99v-5w3c-jqq9BIT-DJANGO-2021-33571PYSEC-2021-99
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 2.2a1 before 2.2.24, from 3.0a1 before 3.1.12, from 3.2a1 before 3.2.4, from 2.2 before 2.2.24, from 3.0 before 3.1.12, from 3.2 before 3.2.4 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 2.2 before 2.2.24, from 3.0 before 3.1.12, from 3.2 before 3.2.4 | NVD |
| fedoraproject fedora | 35 | NVD |
| django (Bitnami) | from 2.2.0 before 2.2.24, from 3.0.0 before 3.1.12, from 3.2.0 before 3.2.4 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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+..) .
NVD (es)
En Django versiones 2.2 anteriores a 2.2.24, versiones 3.x anteriores a 3.1.12 y versiones 3.2 anteriores a 3.2.4, las funciones URLValidator, validate_ipv4_address y validate_ipv46_address no prohíben los caracteres cero a la izquierda en los literales octales. Esto puede permitir una omisión del control de acceso basado en las direcciones IP. (validate_ipv4_address y validate_ipv46_address no se ven afectados con Python versión 3.9.5+)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33571 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p99v-5w3c-jqq9 changed 2024-09-20 | CC-BY-4.0 |
| NVD | CVE-2021-33571 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-99 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2021-33571 changed 2026-09-08 | Apache-2.0 |