CVE-2021-33571

django: Possible indeterminate SSRF, RFI, and LFI attacks since validators accepted leading zeros in IPv4 addresses

Published Jun 8, 2021 CVSS 3.1 · 7.5 High EPSS 5.3% KEV · Not listed
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+..) .

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2676-1 python-django security update
Debian DLA Debian DLA DLA-3744-1 python-django security update
EUVD EUVD EUVD-2021-0068 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+..) .
Github GHSA Github GHSA GHSA-p99v-5w3c-jqq9 Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
Ubuntu USN Ubuntu USN USN-4975-1 Django vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 11:50 PM
Reserved
May 25, 2021, 12:00 AM
Status
Modified
Published
Jun 8, 2021, 6:15 PM
Modified
Jun 17, 2026, 3:54 AM
Severity
Moderate
Public date
Jun 2, 2021, 12:00 AM