{"cve":"CVE-2024-42005","nvd":{"published":"2024-08-07T15:15:56.220","modified":"2026-06-17T07:48:37.327","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://www.djangoproject.com/weblog/2024/aug/06/security-releases/","https://security.netapp.com/advisory/ntap-20240905-0007/"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T21:53:51.317825789+00:00"},"epss":{"cve":"CVE-2024-42005","score":0.01503,"percentile":0.74325,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pv4p-cwwg-4rph","url":"https://osv.dev/vulnerability/GHSA-pv4p-cwwg-4rph","summary":"Django SQL injection vulnerability","modified":"2025-11-04T21:07:59.999471Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0 <5.0.8"],"fixed":["5.0.8"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.15"],"fixed":["4.2.15"]}]},{"id":"PYSEC-2024-70","url":"https://osv.dev/vulnerability/PYSEC-2024-70","summary":"","modified":"2026-06-10T17:01:06.157884210Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0 <5.0.8",">=4.2 <4.2.15"],"fixed":["5.0.8","4.2.15"]}]}],"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."]}