{"id":"CVE-2021-45116","published":"2022-01-04T23:12:43Z","modified":"2025-05-22T18:36:21Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01978,"percentile":0.81018,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_refsource_MISC"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["x_refsource_MISC"]},{"url":"https://www.djangoproject.com/weblog/2022/jan/04/security-releases/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0005/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":16.2},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-22T15:36:53.915693Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.2, <2.2.26",">=3.2, <3.2.11",">=4.0, <4.0.1"],"patched":["2.2.26","3.2.11","4.0.1"],"from":["GHSA-8c5j-9r9f-c6w8","PYSEC-2022-2"],"provenance":"source"}],"summary":{"text":"The Django web framework (versions 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1) contains an improper input validation flaw in its dictsort template filter, which relies on the Django Template Language's variable resolution logic. An attacker who can supply a suitably crafted key to that filter can potentially disclose information or trigger an unintended method call, and the attack can be carried out over the network without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:09:42Z"},"euvd":{"id":"EUVD-2022-0089","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2021-45116","children":[{"from":"CVE-2021-45116","to":"CVE-2024-41989","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/template/defaultfilters.py"],"commits":["https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489","https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16","https://github.com/django/django/commit/27900fe56f3d3cabb4aeb6ccb82f92bab29073a8","https://github.com/django/django/commit/fc76660f589ac07e45e9cd34ccb8087aeb11904b"],"basis":"rarely changed file"}]}]}}