CVE-2021-33571: Djangoproject Django
High severity, CVSS 7.5. EPSS: 5.3% probability of exploitation activity in the next 30 days.
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+..) .
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Djangoproject Django, from 2.2, before 2.2.24: fixed in 2.2.24
- Djangoproject Django, from 3.0, before 3.1.12: fixed in 3.1.12
- Djangoproject Django, from 3.2, before 3.2.4: fixed in 3.2.4
Affected products
- Djangoproject Django: from 2.2, before 2.2.24 (fixed in 2.2.24); from 3.0, before 3.1.12 (fixed in 3.1.12); from 3.2, before 3.2.4 (fixed in 3.2.4)
- Fedoraproject Fedora: version 35 only
Affected packages
- django (PyPI)
Published 2021-06-08. Last modified 2026-06-17.