Skip to content
Heist/ feed
Back to feed
HighFix available

python-django — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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
python-django
Affected versions
Not specified
Fixed versions
2:3.2.11-1
CVEs
CVE-2021-45116
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 01:43 UTC · Revision 1

Source evidence

DEBIAN-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:DEBIAN-CVE-2021-45116

python-django

Fixed versions: 2:3.2.11-1

python-django

Fixed versions: 2:3.2.11-1

python-django

Fixed versions: 2:3.2.11-1

Complete source record
{
  "id": "f3d431ff7cc891ff98b3991d8ecf1e8fdd330cd82e33eccb6ef0dd256b2dc19e",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-45116",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2021-45116",
    "products": [
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:3.2.11-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:3.2.11-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "python-django",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:3.2.11-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-45116",
      "aliases": [
        "DEBIAN-CVE-2021-45116"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:3.2.11-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-45116.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:3.2.11-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-45116.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:3.2.11-1"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django",
            "purl": "pkg:deb/debian/python-django?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-45116.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:04:50.846459590Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-45116"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-45116"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-45116",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 424106,
  "published_at": "2022-01-05T00:15:07.953+00:00"
}