{"id":"CVE-2024-42005","aliases":["CVE-2024-42005","GHSA-pv4p-cwwg-4rph","BIT-DJANGO-2024-42005","PYSEC-2024-70"],"related":[],"kind":"vulnerability","state":"published","title":"Django SQL injection vulnerability","summary":"An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and values_list() methods on models with a JSONField are subject to SQL injection in column aliases via a crafted JSON object key as a passed *arg.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and values_list() methods on models with a JSONField are subject to SQL injection in column aliases via a crafted JSON object key as a passed *arg.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Django 5.0 anterior a 5.0.8 y 4.2 anterior a 4.2.15. Los métodos QuerySet.values() y value_list() en modelos con JSONField están sujetos a inyección SQL en alias de columna a través de una clave de objeto JSON diseñada como un *arg pasado.","source":"nvd"}],"published":"2024-08-07T00:00:00.000Z","modified":"2026-09-10T16:00:58.745Z","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:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"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":"4.2","fixed":"4.2.15","status":"affected"},{"type":"custom","introduced":"5.0","fixed":"5.0.8","status":"affected"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.8"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.15"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.15"},{"status":"affected","introduced":"5.0","fixed":"5.0.8"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.8"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.15"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.15"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.8"}],"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/forum/#%21forum/django-announce","tags":["not-applicable","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2024/aug/06/security-releases/","tags":["advisory","article","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20240905-0007/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42005","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28","tags":["web"],"sources":["ghsa"]},{"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-70.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20240905-0007","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2024/aug/06/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-pv4p-cwwg-4rph","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-08-16T20:19:17.076Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42005","url":"https://www.cve.org/CVERecord?id=CVE-2024-42005","licence":"CVE Terms of Use","modified":"2025-11-04T16:13:43.599Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pv4p-cwwg-4rph","url":"https://github.com/advisories/GHSA-pv4p-cwwg-4rph","licence":"CC-BY-4.0","modified":"2025-11-04T21:07:59.999Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42005","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42005","licence":"Public domain","modified":"2026-06-17T07:48:37.327Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-70","url":"https://osv.dev/vulnerability/PYSEC-2024-70","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:06.157Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-42005","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-42005","licence":"Apache-2.0","modified":"2026-09-10T16:00:58.745Z"}],"updatedAt":"2026-11-25T22:58:44.097Z","epss":{"score":0.01503,"percentile":0.75067,"date":"2026-12-01T12:00:22.000Z"}}