ADVISORIES

PyPA Advisory Database

PYSEC-2021-99

Details

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 packages

EcosystemPackageAffected versions
PyPIdjango
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)

References