{"cve":"CVE-2024-53908","nvd":{"published":"2024-12-06T12:15:18.583","modified":"2026-06-17T08:09:28.870","status":"Analyzed","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.)","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://www.openwall.com/lists/oss-security/2024/12/04/3"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T21:57:36.180738747+00:00"},"epss":{"cve":"CVE-2024-53908","score":0.01415,"percentile":0.72753,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m9g8-fxxm-xg86","url":"https://osv.dev/vulnerability/GHSA-m9g8-fxxm-xg86","summary":"Django SQL injection in HasKey(lhs, rhs) on Oracle","modified":"2026-09-10T03:50:21.669814850Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0.0 <5.0.10"],"fixed":["5.0.10"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.1.0 <5.1.4"],"fixed":["5.1.4"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2.0 <4.2.17"],"fixed":["4.2.17"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.1 <5.1.4"],"fixed":["5.1.4"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0 <5.0.10"],"fixed":["5.0.10"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.17"],"fixed":["4.2.17"]}]},{"id":"PYSEC-2024-157","url":"https://osv.dev/vulnerability/PYSEC-2024-157","summary":"","modified":"2026-06-10T17:00:52.480540453Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.1 <5.1.4",">=5.0 <5.0.10",">=4.2 <4.2.17"],"fixed":["5.1.4","5.0.10","4.2.17"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}