{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-45116","id":"CVE-2021-45116","title":"Information disclosure in Django","description":"An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an unintended method call, if passed a suitably crafted key.","descriptionLong":"An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an unintended method call, if passed a suitably crafted key.","published":"2022-01-04T23:12:43.000Z","updated":"2026-11-16T10:45:19.982549185Z","reserved":"2021-12-16T00: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:H/I:N/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:H/VI:N/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:H/I:N/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:H/I:N/A:N","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.26",">=3.2 <3.2.11",">=4.0 <4.0.1"],"fixed":["2.2.26","3.2.11","4.0.1"],"advisory":"GHSA-8c5j-9r9f-c6w8"}],"cwes":["CWE-20"],"aliases":["BIT-django-2021-45116","GHSA-8c5j-9r9f-c6w8","PYSEC-2022-2"],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix","web"]},{"url":"https://www.djangoproject.com/weblog/2022/jan/04/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix","article"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0005/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45116","tags":["advisory"]},{"url":"https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489","tags":["web"]},{"url":"https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16","tags":["web"]},{"url":"https://github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93a","tags":["web"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8c5j-9r9f-c6w8","tags":["advisory"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yaml","tags":["web"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","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-20220121-0005","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2022/jan/04/security-releases","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01978,"epssPercentile":0.80957,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-45116","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45116","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-45116","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8c5j-9r9f-c6w8","ok":true,"note":"GHSA-8c5j-9r9f-c6w8"},{"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-45116","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}