CVE-2021-33571: SSRF

Published May 31, 2021
·
Updated

:class:~django.core.validators.URLValidator, :func:~django.core.validators.validateipv4address, and :func:~django.core.validators.validateipv46address didn't prohibit leading zeros in octal literals. If you used such values you could suffer from indeterminate SSRF, RFI, and LFI attacks.

:func:~django.core.validators.validateipv4address and :func:~django.core.validators.validateipv46address validators were not affected on Python 3.9.5+.

Other sources

A flaw was found in django. Leading zeros in octal literals aren't prohibited in IP addresses. If you used such values you could suffer from indeterminate SSRF, RFI, and LFI attacks. The highest threat from this vulnerability is to data integrity.

In Django 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4, URLValidator, validateipv4address, and validateipv46address do not prohibit leading zero characters in octal literals. This may allow a bypass of access control that is based on IP addresses. (validateipv4address and validateipv46address are unaffected with Python 3.9.5+..) .

Affected Software

12 affected componentsFixes available
redhat/python-django20<0:2.0.13-16.el8
0:2.0.13-16.el8
redhat/python3-django<0:2.2.24-1.el7
0:2.2.24-1.el7
redhat/Django<3.2.4
3.2.4
redhat/Django<3.1.12
3.1.12
redhat/Django<2.2.24
2.2.24
pip/Django>=3.2a1<3.2.4
3.2.4
pip/Django>=3.0a1<3.1.12
3.1.12
pip/Django>=2.2a1<2.2.24
2.2.24
djangoproject Django>=2.2<2.2.24
djangoproject Django>=3.0<3.1.12
djangoproject Django>=3.2<3.2.4
Fedoraproject Fedora=35

Remediation

Information

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Event History

Jun 2, 2021
CVE Published
12:00 AM
Jun 8, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 10, 2021
Advisory Published
05:21 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2021-33571.

2

What is the severity of CVE-2021-33571?

The severity of CVE-2021-33571 is high with a CVSS score of 7.5.

3

What is the affected software?

The affected software is Django versions 2.2 before 2.2.24, 3.x before 3.1.12, and 3.2 before 3.2.4.

4

How does the vulnerability affect access control based on IP addresses?

The vulnerability allows a bypass of access control that is based on IP addresses.

5

How do I fix CVE-2021-33571?

To fix CVE-2021-33571, update Django to version 3.2.4, 3.1.12, or 2.2.24, depending on the installed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203