{"id":"CVE-2021-33571","published":"2021-06-08T00:00:00Z","modified":"2024-08-03T23:50:43Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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+..) .","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0526,"percentile":0.92741,"provenance":"source"},"cwes":[],"references":[{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":[]},{"url":"https://groups.google.com/g/django-announce/c/sPyjSKMi8Eo","tags":[]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory"]},{"url":"https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc","tags":[]},{"url":"https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e","tags":[]},{"url":"https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d","tags":[]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":18.55}]},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.2a1, <2.2.24",">=3.0a1, <3.1.12",">=3.2a1, <3.2.4",">=2.2, <2.2.24",">=3.0, <3.1.12",">=3.2, <3.2.4"],"patched":["2.2.24","3.1.12","3.2.4"],"from":["GHSA-p99v-5w3c-jqq9","PYSEC-2021-99"],"provenance":"source"}],"summary":{"text":"The flaw is in Django's URLValidator, validate_ipv4_address, and validate_ipv46_address validators, which fail to reject leading zeros in octal-style IPv4 literals. An attacker can exploit this to bypass IP-address-based access control in affected Django 2.2, 3.x, and 3.2 releases, with the exact conditions depending on how the application uses these validators.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:09:56Z"},"euvd":{"id":"EUVD-2021-0068","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-31542","published":"2021-05-05","fixed":"3.2.1","kev":false},{"cve":"CVE-2021-32052","published":"2021-05-06","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2021-32052","to":"CVE-2021-33571","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.2.22","toFixed":"2.2.24","daysApart":33},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.1.10","toFixed":"3.1.12","daysApart":33},{"kind":"same-code","provenance":"machine","files":["django/core/validators.py"],"commits":["https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f","https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc","https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e"],"basis":"shared file"}]}},{"cve":"CVE-2021-33203","published":"2021-06-08","fixed":"3.2.4","kev":false},{"cve":"CVE-2021-33571","published":"2021-06-08","fixed":"3.2.4","kev":false},{"cve":"CVE-2021-35042","published":"2021-07-02","fixed":"3.2.5","kev":false},{"cve":"CVE-2021-44420","published":"2021-12-07","fixed":"3.2.10","kev":false},{"cve":"CVE-2021-45115","published":"2022-01-04","fixed":"4.0.1","kev":false}],"package":"PyPI:Django"}}