CVE-2021-33571
Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
7.5
HIGH
CVSS 3.1
EPSS 0.01%
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+..) .
How to fix CVE-2021-33571
To remediate CVE-2021-33571, upgrade the affected package to a fixed version below.
- —upgrade to 2.2.24 or later
- —upgrade to 2:2.2.24-1 or later
- —upgrade to 2.2.24 or later
- —upgrade to 2.2.24 or later
Is CVE-2021-33571 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 2.2.0, < 2.2.24, >= 3.0.0, < 3.1.12, >= 3.2.0, < 3.2.4
- from 0, < 2:2.2.24-1
- >= 2.2a1, < 2.2.24
- >= 2.2, < 2.2.24, >= 3.0, < 3.1.12, >= 3.2, < 3.2.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |