{"id":"CVE-2024-53908","published":"2024-12-06T00:00:00Z","modified":"2024-12-06T16:22:02Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"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.)","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01872,"percentile":0.79893,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":[]},{"url":"https://groups.google.com/g/django-announce","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2024/12/04/3","tags":[]}],"priority":{"score":22.8,"factors":[{"name":"EPSS percentile","points":15.98},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-12-06T16:19:13.745984Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=5.0.0, <5.0.10",">=5.1.0, <5.1.4",">=4.2.0, <4.2.17",">=5.1, <5.1.4",">=5.0, <5.0.10",">=4.2, <4.2.17"],"patched":["5.0.10","5.1.4","4.2.17"],"from":["GHSA-m9g8-fxxm-xg86","PYSEC-2024-157"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection in Django's django.db.models.fields.json.HasKey lookup, affecting Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17 when the application runs on an Oracle database. An attacker can inject SQL when untrusted data is passed as the lhs value to that lookup used directly, while applications using the jsonfield.has_key lookup via __ are unaffected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:50:14Z"},"euvd":{"id":"EUVD-2024-0049","exploited":false,"provenance":"source"}}