CVE-2024-53908
CRITICAL 9.8CVSS 3.1Django SQL injection in HasKey(lhs, rhs) on Oracle
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.)
- Published
- 6 Dec 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- BIT-django-2024-53908GHSA-m9g8-fxxm-xg86PYSEC-2024-157
- Sources
- NVDJSONOSV GHSA-m9g8-fxxm-xg86JSONOSV PYSEC-2024-157JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2, < 4.2.17 | 4.2.17 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.0, < 5.0.10 | 5.0.10 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.1, < 5.1.4 | 5.1.4 |
| OSV | PyPI | django | >= 5.0.0, < 5.0.10 | 5.0.10 |
| OSV | PyPI | django | >= 5.1.0, < 5.1.4 | 5.1.4 |
| OSV | PyPI | django | >= 4.2.0, < 4.2.17 | 4.2.17 |
| OSV | PyPI | django | >= 5.1, < 5.1.4 | 5.1.4 |
| OSV | PyPI | django | >= 5.0, < 5.0.10 | 5.0.10 |
| OSV | PyPI | django | >= 4.2, < 4.2.17 | 4.2.17 |
| OSV | PyPI | django | >= 5.1, < 5.1.4; >= 5.0, < 5.0.10; >= 4.2, < 4.2.17 | 5.1.4, 5.0.10, 4.2.17 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB
- https://groups.google.com/g/django-announce · Release Notes, WEB
- https://www.openwall.com/lists/oss-security/2024/12/04/3 · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-53908 · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-157.yaml · WEB
- https://www.djangoproject.com/weblog/2024/dec/04/security-releases · WEB
- https://github.com/advisories/GHSA-m9g8-fxxm-xg86 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 6 Dec 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Dec 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Dec 2024)