Vulnerabilities · 2024 · Djangoproject
CVE-2024-53908
Djangoproject Django vulnerability
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.)
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Django. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/dev/releases/security/ · Patch
- www.openwall.com/lists/oss-security/2024/12/04/3 · Third Party Advisory
- groups.google.com/g/django-announce
- nvd.nist.gov/vuln/detail/CVE-2024-53908
- docs.djangoproject.com/en/dev/releases/security
- www.djangoproject.com/weblog/2024/dec/04/security-releases
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-157.yaml
- github.com/advisories/GHSA-m9g8-fxxm-xg86
- nvd.nist.gov/vuln/detail/CVE-2024-53908
- cve.org/CVERecord?id=CVE-2024-53908
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.