Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-45116

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-45116
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:25 UTC · Revision 1

Source evidence

CVE-2021-45116

core-osv · Original source

Published 5 Jan 2022, 00:15 UTC

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.

osv:CVE-2021-45116
Complete source record
{
  "id": "69048342bf6c9049d611443261a456dc88ec6850d490027284f010a2903801c5",
  "url": "https://osv.dev/vulnerability/CVE-2021-45116",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-45116",
    "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.",
    "evidence": "osv:CVE-2021-45116",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-45116",
      "aliases": [
        "BIT-django-2021-45116",
        "CVE-2021-45116",
        "GHSA-8c5j-9r9f-c6w8",
        "PYSEC-2022-2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/django/django",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
                },
                {
                  "fixed": "44e7cca62382f2535ed0f5d2842b433f0bd23a57"
                },
                {
                  "introduced": "3591e1c1acbd7c13174275367c3fdf012cb0413b"
                },
                {
                  "fixed": "6e499a28ac6ec10c2f0f77b92cab49fb8f8df419"
                },
                {
                  "introduced": "ef62a3a68c9d558486145a42c0d71ea9a76add9e"
                },
                {
                  "fixed": "27a64da8213f27787ae1c48041a70f197cdcfd6f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2"
                      },
                      {
                        "fixed": "2.2.26"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2"
                      },
                      {
                        "fixed": "3.2.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0"
                      },
                      {
                        "fixed": "4.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45116.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:39.229445308Z",
      "provider": "osv",
      "references": [
        "https://groups.google.com/forum/#%21forum/django-announce",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/",
        "https://security.netapp.com/advisory/ntap-20220121-0005/",
        "https://docs.djangoproject.com/en/4.0/releases/security/",
        "https://www.djangoproject.com/weblog/2022/jan/04/security-releases/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-45116",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 434612,
  "published_at": "2022-01-05T00:15:07.953+00:00"
}