{"id":"CVE-2021-45116","aliases":["CVE-2021-45116","GHSA-8c5j-9r9f-c6w8","BIT-DJANGO-2021-45116","PYSEC-2022-2"],"related":[],"kind":"vulnerability","state":"published","title":"Information disclosure in Django","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se ha detectado un problema en Django versiones 2.2 anteriores a 2.2.26, 3.2 anteriores a 3.2.11 y 4.0 anteriores a 4.0.1. Debido al aprovechamiento de la lógica de resolución de variables del lenguaje de plantillas de Django, el filtro de plantillas dictsort era potencialmente vulnerable a una divulgación de información, o a una llamada de método no intencionada, si le es pasada una clave apropiadamente diseñada.","source":"nvd"}],"published":"2022-01-04T23:12:43.000Z","modified":"2026-09-08T08:46:26.601Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.26"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.11"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2","fixed":"2.2.26"},{"status":"affected","introduced":"3.2","fixed":"3.2.11"},{"status":"affected","introduced":"4.0","fixed":"4.0.1"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.26"},{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.11"},{"type":"ecosystem","introduced":"4.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.26"},{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.11"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2022/jan/04/security-releases/","tags":["advisory","article","patch","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0005/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45116","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93a","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8c5j-9r9f-c6w8","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0005","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2022/jan/04/security-releases","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-22T15:36:53.915Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45116","url":"https://www.cve.org/CVERecord?id=CVE-2021-45116","licence":"CVE Terms of Use","modified":"2025-05-22T18:36:21.277Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8c5j-9r9f-c6w8","url":"https://github.com/advisories/GHSA-8c5j-9r9f-c6w8","licence":"CC-BY-4.0","modified":"2025-02-21T05:29:59.213Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45116","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45116","licence":"Public domain","modified":"2026-06-17T04:13:11.670Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-2","url":"https://osv.dev/vulnerability/PYSEC-2022-2","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:43.088Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2021-45116","url":"https://osv.dev/vulnerability/BIT-DJANGO-2021-45116","licence":"Apache-2.0","modified":"2026-09-08T08:46:26.601Z"}],"updatedAt":"2026-11-25T22:58:06.402Z","epss":{"score":0.01978,"percentile":0.81112,"date":"2026-12-01T12:00:22.000Z"}}