Live threats

All CVEs / Djangoproject

CVE-2024-53908Djangoproject Django

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Dec 6, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.)

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 5.0.0 < 5.0.10 5.0.10 pip install "django>=5.0.10"
PyPI django ≥ 5.1.0 < 5.1.4 5.1.4 pip install "django>=5.1.4"
PyPI django ≥ 4.2.0 < 4.2.17 4.2.17 pip install "django>=4.2.17"
PyPI django ≥ 5.1 < 5.1.4 5.1.4 pip install "django>=5.1.4"
PyPI django ≥ 5.0 < 5.0.10 5.0.10 pip install "django>=5.0.10"
PyPI django ≥ 4.2 < 4.2.17 4.2.17 pip install "django>=4.2.17"
PyPI django ≥ 5.1 < 5.1.4 5.1.4 pip install "django>=5.1.4"
PyPI django ≥ 5.0 < 5.0.10 5.0.10 pip install "django>=5.0.10"
PyPI django ≥ 4.2 < 4.2.17 4.2.17 pip install "django>=4.2.17"

Per OSV / GitHub Advisories (GHSA-m9g8-fxxm-xg86, PYSEC-2024-157). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.17
djangoprojectdjango≥ 5.0 < 5.0.10
djangoprojectdjango≥ 5.1 < 5.1.4

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.