CVE catalog

CVE-2021-35042

python-django: CVE-2021-35042

[CVE catalog]

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

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.

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-1not affected
Debianpython-djangoforky3:5.2.17-2not affected
Debianpython-djangotrixie3:4.2.28-0+deb13u2not affected
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1not affected
Debianpython-djangobookworm3:3.2.25-0+deb12u3not affected
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesidNot affectedunimportantNot reportedNot reported
Debianpython-djangosourceforkyNot affectedunimportantNot reportedNot reported
Debianpython-djangosourcetrixieNot affectedunimportantNot reportedNot reported
Debianpython-djangosourcebookwormNot affectedunimportantNot reportedNot reported

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

  • Source package: [python-django]

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

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

      Not affected

      dsa · python-django · debian · bookworm

Observed:

References