CVE-2024-53908
JSON

9.8critical

Django SQL injection in HasKey(lhs, rhs) on Oracle

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.42% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-m9g8-fxxm-xg86BIT-DJANGO-2024-53908PYSEC-2024-157

Description

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
djangoproject djangofrom 5.1 before 5.1.4, from 5.0 before 5.0.10, from 4.2 before 4.2.17CVE List, NVD
django (PyPI)from 5.0.0 before 5.0.10, from 5.1.0 before 5.1.4, from 4.2.0 before 4.2.17, from 5.1 before 5.1.4, from 5.0 before 5.0.10, from 4.2 before 4.2.17GitHub Advisory Database, PyPA Advisory Database
django (Bitnami)from 4.2.0 before 4.2.17, from 5.0.0 before 5.1.4Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS: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
Bitnami Vulnerability Databasecritical rating

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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

NVD (es)

Se descubrió un problema en Django 5.1 anterior a 5.1.4, 5.0 anterior a 5.0.10 y 4.2 anterior a 4.2.17. El uso directo de la búsqueda django.db.models.fields.json.HasKey, cuando se utiliza una base de datos Oracle, está sujeto a inyección SQL si se utilizan datos no confiables como valor de lhs. (Las aplicaciones que utilizan la búsqueda jsonfield.has_key mediante __ no se ven afectadas).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53908 changed 2024-12-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-m9g8-fxxm-xg86 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-53908 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-157 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2024-53908 changed 2026-09-08Apache-2.0