Feed
7.5HIGH
CVE-2021-33571Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 5.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 5.3%
- percentile 93%
- Fix
- Named by a source
- CVE published 8 Jun 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 5.3% (+5) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.24 / 3.1.12 / 3.2.4 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e
- Commit / pull request: https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d
- Commit / pull request: https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2a1, < 2.2.24Fixed in2.2.24OSV (GHSA-p99v-5w3c-jqq9)
- Affected>= 3.0a1, < 3.1.12Fixed in3.1.12OSV (GHSA-p99v-5w3c-jqq9)
- Affected>= 3.2a1, < 3.2.4Fixed in3.2.4OSV (GHSA-p99v-5w3c-jqq9)
- Affected>= 2.2, < 2.2.24Fixed in2.2.24OSV (PYSEC-2021-99)
- Affected>= 3.0, < 3.1.12Fixed in3.1.12OSV (PYSEC-2021-99)
- Affected>= 3.2, < 3.2.4Fixed in3.2.4OSV (PYSEC-2021-99)
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-p99v-5w3c-jqq9)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-918
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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+..) .
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-33571
- commit / pull requesthttps://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e
- commit / pull requesthttps://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d
- commit / pull requesthttps://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc
- otherhttps://docs.djangoproject.com/en/3.2/releases/security
- advisoryhttps://github.com/advisories/GHSA-p99v-5w3c-jqq9
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-99.yaml
- otherhttps://groups.google.com/g/django-announce/c/sPyjSKMi8Eo
- otherhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- otherhttps://security.netapp.com/advisory/ntap-20210727-0004
- otherhttps://www.djangoproject.com/weblog/2021/jun/02/security-releases
- otherhttps://docs.djangoproject.com/en/3.2/releases/security/
- otherhttps://www.djangoproject.com/weblog/2021/jun/02/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-p99v-5w3c-jqq9 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-99 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 14 min ago · osv 14 min ago · nvd 75 min ago · epss 14 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-33571, GHSA-p99v-5w3c-jqq9, PYSEC-2021-99