CVE catalog

CVE-2021-45116

python-django: CVE-2021-45116

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.84% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2fixed
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1fixed
Debianpython-djangobookworm3:3.2.25-0+deb12u3fixed
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6fixed
Ubuntupython-djangopro1.7.9-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.5-2ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.2vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.6vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.7vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.8vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.9vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.10vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.11vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.12vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.13vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.14vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm1vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm3vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm4vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm5vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm6vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm7vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm8vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm9vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm10vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm11vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm12vulnerable
Ubuntupython-djangopro1.8.7-1ubuntu5.15+esm13vulnerable
Ubuntupython-django18.041:1.11.4-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.6-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.9-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.1vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.2vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.3vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.4vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.5vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.6vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.7vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.8vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.9vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.10vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.11vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.12vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.13vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.14vulnerable
Ubuntupython-django18.041:1.11.11-1ubuntu1.15fixed
Ubuntupython-django20.041:1.11.22-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.6-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.9-2ubuntu1vulnerable
Ubuntupython-django20.042:2.2.10-1vulnerable
Ubuntupython-django20.042:2.2.10-1ubuntu1vulnerable
Ubuntupython-django20.042:2.2.11-1vulnerable
Ubuntupython-django20.042:2.2.12-1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.1vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.2vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.3vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.4vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.5vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.6vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.7vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.8vulnerable
Ubuntupython-django20.042:2.2.12-1ubuntu0.9fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid2:3.2.11-1not yet assignedNot reported[1003113]
Debianpython-djangosourceforky2:3.2.11-1not yet assignedNot reported[1003113]
Debianpython-djangosourcetrixie2:3.2.11-1not yet assignedNot reported[1003113]
Debianpython-djangosourcebookworm2:3.2.11-1not yet assignedNot reported[1003113]
Ubuntupython-djangodeb18.041:1.11.11-1ubuntu1.15Not reportedUBUNTU-CVE-2021-45116Not reported
Ubuntupython-djangodeb20.042:2.2.12-1ubuntu0.9Not reportedUBUNTU-CVE-2021-45116Not reported

[Debian bug #1003113]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · bookworm; dsa · python-django · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 2:3.2.11-1

      dsa · python-django · debian · 13

Observed:

References