CVE-2021-33571
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.4GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 2.2 before 2.2.24, from 3.0 before 3.1.12, from 3.2 before 3.2.4NVD
fedoraproject fedora35NVD
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.4Bitnami Vulnerability Database

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh 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

https://docs.djangoproject.com/en/3.2/releases/security/advisory, patch, vendor-advisory, web
https://groups.google.com/g/django-announce/c/sPyjSKMi8Eoadvisory, mailing-list, third-party-advisory, web
https://www.djangoproject.com/weblog/2021/jun/02/security-releases/advisory, article, patch, vendor-advisory
https://security.netapp.com/advisory/ntap-20210727-0004/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/vendor-advisory, web
https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fcweb
https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118eweb
https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3dweb
https://nvd.nist.gov/vuln/detail/CVE-2021-33571advisory, web
https://docs.djangoproject.com/en/3.2/releases/securityweb
https://github.com/advisories/GHSA-p99v-5w3c-jqq9advisory
https://github.com/django/djangopackage

Sources

SourceRecordLicence
CVE ListCVE-2021-33571 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-p99v-5w3c-jqq9 changed 2024-09-20CC-BY-4.0
NVDCVE-2021-33571 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-99 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-33571 changed 2026-09-08Apache-2.0