{"id":"CVE-2024-42005","sourceIdentifier":"cve@mitre.org","published":"2024-08-07T15:15:56.220","lastModified":"2026-06-17T07:48:37.327","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","affectedData":[{"vendor":"djangoproject","product":"django","defaultStatus":"unknown","cpes":["cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"],"versions":[{"version":"4.2","lessThan":"4.2.15","versionType":"custom","status":"affected"},{"version":"5.0","lessThan":"5.0.8","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"},"exploitabilityScore":3.9,"impactScore":3.4},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-08-16T20:19:17.076015Z","id":"CVE-2024-42005","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-89"}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-89"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.2.15","matchCriteriaId":"7C38224F-C41B-428C-89C2-603BBA95AD3C"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.0.8","matchCriteriaId":"3384B57C-DBF5-4E23-99E7-92B260D53E8E"}]}]}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","source":"cve@mitre.org","tags":["Patch","Vendor Advisory"]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","source":"cve@mitre.org","tags":["Not Applicable"]},{"url":"https://www.djangoproject.com/weblog/2024/aug/06/security-releases/","source":"cve@mitre.org","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240905-0007/","source":"af854a3a-2127-422b-91ae-364da2661108"}]}