PT-2021-4521 · Django+4 · Django+4

Published

2021-05-25

·

Updated

2026-01-03

·

CVE-2021-33571

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Django versions 2.2 before 2.2.24 Django versions 3.x before 3.1.12 Django versions 3.2 before 3.2.4
Description The issue is related to the URLValidator, validate ipv4 address, and validate ipv46 address functions in Django, which do not prohibit leading zero characters in octal literals. This may allow a bypass of access control based on IP addresses. The validate ipv4 address and validate ipv46 address functions are unaffected when used with Python 3.9.5 and later.
Recommendations For Django versions 2.2 before 2.2.24, update to version 2.2.24 or later to resolve the issue. For Django versions 3.x before 3.1.12, update to version 3.1.12 or later to resolve the issue. For Django versions 3.2 before 3.2.4, update to version 3.2.4 or later to resolve the issue. As a temporary workaround, consider restricting access to IP addresses that could be affected by the bypass of access control until a patch is applied.

Fix

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2021-2228
ALT-PU-2021-3619
BDU:2021-05162
BIT-DJANGO-2021-33571
CVE-2021-33571
DLA-2676-1
DLA-3744-1
GHSA-P99V-5W3C-JQQ9
MGASA-2021-0356
OPENSUSE-SU-2023:0005-1
OPENSUSE-SU-2024:11205-1
OPENSUSE-SU-2024:13887-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
PYSEC-2021-99
RHSA-2021:3490
RHSA-2021:4702
RHSA-2021:5070
SUSE-SU-2021:1962-1
SUSE-SU-2021:1963-1
SUSE-SU-2021:2554-1
USN-4975-1

Affected Products

Alt Linux
Astra Linux
Django
Linuxmint
Ubuntu