{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-33571","id":"CVE-2021-33571","title":"Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks ","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+..) .","descriptionLong":"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+..) .","published":"2021-06-08T00:00:00.000Z","updated":"2026-11-16T10:45:07.300425997Z","reserved":"2021-05-25T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2a1 <2.2.24",">=3.0a1 <3.1.12",">=3.2a1 <3.2.4",">=2.2 <2.2.24",">=3.0 <3.1.12",">=3.2 <3.2.4"],"fixed":["2.2.24","3.1.12","3.2.4"],"advisory":"GHSA-p99v-5w3c-jqq9"}],"cwes":["CWE-918"],"aliases":["BIT-django-2021-33571","GHSA-p99v-5w3c-jqq9","PYSEC-2021-99"],"references":[{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":["x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://groups.google.com/g/django-announce/c/sPyjSKMi8Eo","tags":["x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases/","tags":["x_transferred","Patch","Vendor Advisory","fix","article"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://github.com/django/django/commit/f27c38ab5d90f68c9dd60cabef248a570c0be8fc","tags":["x_transferred","fix","web"]},{"url":"https://github.com/django/django/commit/203d4ab9ebcd72fc4d6eb7398e66ed9e474e118e","tags":["x_transferred","fix","web"]},{"url":"https://github.com/django/django/commit/9f75e2e562fa0c0482f3dde6fc7399a9070b4a3d","tags":["x_transferred","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33571","tags":["advisory"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security","tags":["web"]},{"url":"https://github.com/advisories/GHSA-p99v-5w3c-jqq9","tags":["advisory"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-99.yaml","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0526,"epssPercentile":0.92718,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-33571","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33571","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-33571","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p99v-5w3c-jqq9","ok":true,"note":"GHSA-p99v-5w3c-jqq9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-33571","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}