CVE catalog

CVE-2021-45115

python-django: CVE-2021-45115

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
2.42% · 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. UserAttributeSimilarityValidator incurred significant overhead in evaluating a submitted password that was artificially large in relation to the comparison values. In a situation where access to user registration was unrestricted, this provided a potential vector for a denial-of-service attack.

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
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
Opensusepython-Djangotumbleweed4.0.1-1.1fixed
Opensusepython-Djangotumbleweed5.1.5-1.1fixed
Susepython-Djangohpe helion openstack 81.11.29-3.33.1fixed
Susepython-Djangoopenstack cloud 81.11.29-3.33.1fixed
Susepython-Djangoopenstack cloud crowbar 81.11.29-3.33.1fixed
Susepython-Django1openstack cloud 91.11.29-3.30.1fixed
Susepython-Django1openstack cloud crowbar 91.11.29-3.30.1fixed

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-45115Not reported
Ubuntupython-djangodeb20.042:2.2.12-1ubuntu0.9Not reportedUBUNTU-CVE-2021-45115Not reported
Ubuntupython-djangodeb18.041:1.11.11-1ubuntu1.15Not reportedUSN-5204-1Not reported
Ubuntupython-djangodeb20.042:2.2.12-1ubuntu0.9Not reportedUSN-5204-1Not reported
Opensusepython-Djangorpmtumbleweed4.0.1-1.1Not reportedOPENSUSE-SU-2024:11725-1Not reported
Opensusepython-Djangorpmtumbleweed5.1.5-1.1Not reportedOPENSUSE-SU-2025:14662-1Not reported
Susepython-Djangorpmhpe helion openstack 81.11.29-3.33.1Not reportedSUSE-SU-2022:0102-1Not reported
Susepython-Djangorpmopenstack cloud 81.11.29-3.33.1Not reportedSUSE-SU-2022:0102-1Not reported
Susepython-Djangorpmopenstack cloud crowbar 81.11.29-3.33.1Not reportedSUSE-SU-2022:0102-1Not reported
Susepython-Django1rpmopenstack cloud 91.11.29-3.30.1Not reportedSUSE-SU-2022:0103-1Not reported
Susepython-Django1rpmopenstack cloud crowbar 91.11.29-3.30.1Not reportedSUSE-SU-2022:0103-1Not 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

[openSUSE Tumbleweed]

  • Source package: [python-Django]

    Details (1)
    • 6.0.8-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.1-1.1, 5.1.5-1.1

      Version impact unknown

      dsa · python-Django · opensuse · tumbleweed

  • Source package: [python-Django]

    Details (1)
    • 6.0.8-1.1 · noarch · tumbleweed

      Unknown · Fixed: 4.0.1-1.1, 5.1.5-1.1

      Version impact unknown

      dsa · python-Django · opensuse · tumbleweed

Observed:

References