What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Django 2.2.24, 3.1.12, 3.2.4; Pypi Django 2.2.24, 3.1.12, 3.2.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-33571 or the next vulnerability affects your stack