{"id":"CVE-2024-53908","aliases":["CVE-2024-53908","GHSA-m9g8-fxxm-xg86","BIT-DJANGO-2024-53908","PYSEC-2024-157"],"related":[],"kind":"vulnerability","state":"published","title":"Django SQL injection in HasKey(lhs, rhs) on Oracle","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"es","text":"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).","source":"nvd"}],"published":"2024-12-06T00:00:00.000Z","modified":"2026-09-10T03:50:21.669Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.1","fixed":"5.1.4","status":"affected"},{"type":"custom","introduced":"5.0","fixed":"5.0.10","status":"affected"},{"type":"custom","introduced":"4.2","fixed":"4.2.17","status":"affected"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.10"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.1.0","status":"affected","fixed":"5.1.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.10"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.17"},{"status":"affected","introduced":"5.0","fixed":"5.0.10"},{"status":"affected","introduced":"5.1","fixed":"5.1.4"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.4"},{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.10"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.17"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.1.4"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","patch","vendor-advisory","web"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["article","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.openwall.com/lists/oss-security/2024/12/04/3","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53908","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-157.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2024/dec/04/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-m9g8-fxxm-xg86","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-12-06T16:19:13.745Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53908","url":"https://www.cve.org/CVERecord?id=CVE-2024-53908","licence":"CVE Terms of Use","modified":"2024-12-06T16:22:02.446Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m9g8-fxxm-xg86","url":"https://github.com/advisories/GHSA-m9g8-fxxm-xg86","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:21.669Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53908","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53908","licence":"Public domain","modified":"2026-06-17T08:09:28.870Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-157","url":"https://osv.dev/vulnerability/PYSEC-2024-157","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:52.480Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-53908","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-53908","licence":"Apache-2.0","modified":"2026-09-08T08:46:33.042Z"}],"updatedAt":"2026-11-25T22:58:49.774Z","epss":{"score":0.01415,"percentile":0.73535,"date":"2026-12-01T12:00:22.000Z"}}