CVE catalog

CVE-2024-53908

Django vulnerabilities

[CVE catalog]

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

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.has_key lookup via __ are unaffected.)

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+deb12u3not affected
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6not affected
Ubuntupython-djangonobleNot reportedvulnerable
Ubuntupython-djangonoble3:4.2.11-1ubuntu1.4fixed
Ubuntupython-django-docnoble3:4.2.11-1ubuntu1.4fixed
Ubuntupython3-djangonoble3:4.2.11-1ubuntu1.4fixed
Ubuntupython-django24.043:4.2.4-1ubuntu2vulnerable
Ubuntupython-django24.043:4.2.8-1vulnerable
Ubuntupython-django24.043:4.2.9-1vulnerable
Ubuntupython-django24.043:4.2.11-1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.1vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.2vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.3vulnerable
Ubuntupython-django24.043:4.2.11-1ubuntu1.4fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid3:4.2.17-1not yet assignedNot reportedNot reported
Debianpython-djangosourceforky3:4.2.17-1not yet assignedNot reportedNot reported
Debianpython-djangosourcetrixie3:4.2.17-1not yet assignedNot reportedNot reported
Debianpython-djangosourcebookwormNot affectedunimportantNot reportedNot reported
Ubuntupython-djangodebnoble3:4.2.11-1ubuntu1.4Not reportedNot reportedNot reported
Ubuntupython-django-docdebnoble3:4.2.11-1ubuntu1.4Not reportedNot reportedNot reported
Ubuntupython3-djangodebnoble3:4.2.11-1ubuntu1.4Not reportedNot reportedNot reported
Ubuntupython-djangodeb24.043:4.2.11-1ubuntu1.4Not reportedUBUNTU-CVE-2024-53908Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-django]Not affected

    Source package: [python-django]

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

  • [python-django-doc]Not affected

    Source package: [python-django]

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

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

      Not affected

      usn · python-django · debian · bookworm

[Debian 13 (Trixie)]

  • Source package: [python-django]

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

  • Source package: [python-django]

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

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

      Fixed · Fixed: 3:4.2.17-1

      usn · python-django · debian · 13

Observed:

References