# CVE-2021-33571: Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.26%, higher than 93% of CVEs (2026-11-30)
- Published: 2021-06-08T00:00:00.000Z
- Modified: 2026-09-08T08:46:24.843Z
- Also known as: GHSA-p99v-5w3c-jqq9, BIT-DJANGO-2021-33571, PYSEC-2021-99
- Weaknesses: CWE-918
- Assigned by: mitre

## 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+..) .

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- 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
- djangoproject django: from 2.2 before 2.2.24; from 3.0 before 3.1.12; from 3.2 before 3.2.4
- fedoraproject fedora: 35
- 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

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://docs.djangoproject.com/en/3.2/releases/security/> (advisory, patch, vendor-advisory, web)
- <https://groups.google.com/g/django-announce/c/sPyjSKMi8Eo> (advisory, 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/f27c38ab5d90f68c9dd60cabef248a570c0be8fc> (web)
- <https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e> (web)
- <https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-33571> (advisory, web)
- <https://docs.djangoproject.com/en/3.2/releases/security> (web)
- <https://github.com/advisories/GHSA-p99v-5w3c-jqq9> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-99.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV> (web)
- <https://security.netapp.com/advisory/ntap-20210727-0004> (web)
- <https://www.djangoproject.com/weblog/2021/jun/02/security-releases> (web)

## Sources

- CVE List: [CVE-2021-33571](https://www.cve.org/CVERecord?id=CVE-2021-33571), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-p99v-5w3c-jqq9](https://github.com/advisories/GHSA-p99v-5w3c-jqq9), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-33571](https://nvd.nist.gov/vuln/detail/CVE-2021-33571), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-99](https://osv.dev/vulnerability/PYSEC-2021-99), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2021-33571](https://osv.dev/vulnerability/BIT-DJANGO-2021-33571), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-33571 · Whole record: https://cve.day/CVE-2021-33571.json · Rebuilt by cve.day 2026-11-25T22:58:01.691Z
