Live threats

All CVEs / Djangoproject

CVE-2021-33571Djangoproject Django

High 7.5 No auth needed

Priority
61
CVSS 3.1
7.5
EPSS
5.3%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Jun 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 2.2a1 < 2.2.24 2.2.24 pip install "django>=2.2.24"
PyPI django ≥ 3.0a1 < 3.1.12 3.1.12 pip install "django>=3.1.12"
PyPI django ≥ 3.2a1 < 3.2.4 3.2.4 pip install "django>=3.2.4"
PyPI django ≥ 2.2 < 2.2.24 2.2.24 pip install "django>=2.2.24"
PyPI django ≥ 3.0 < 3.1.12 3.1.12 pip install "django>=3.1.12"
PyPI django ≥ 3.2 < 3.2.4 3.2.4 pip install "django>=3.2.4"

Per OSV / GitHub Advisories (GHSA-p99v-5w3c-jqq9, PYSEC-2021-99). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 2.2 < 2.2.24
djangoprojectdjango≥ 3.0 < 3.1.12
djangoprojectdjango≥ 3.2 < 3.2.4
fedoraprojectfedora35

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.