GitHub Advisoryadvisory · PyPI

GHSA-p99v-5w3c-jqq9 Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks

HIGH Published 2021-06-10 Modified 2024-09-20 Official page ↗
Aliases
CVE-2021-33571
Ecosystem
PyPI
Packages
Django
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-918
Reviewed
2021-06-10

Affected packages

• PyPI Django: >= 2.2a1, < 2.2.24 → fixed in 2.2.24 • PyPI Django: >= 3.0a1, < 3.1.12 → fixed in 3.1.12 • PyPI Django: >= 3.2a1, < 3.2.4 → fixed in 3.2.4

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+..) .

Related

Alias · CVE (1)

  • CVE-2021-33571 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… vulnerability

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References