{"id":"CVE-2025-59681","sourceIdentifier":"cve@mitre.org","published":"2025-10-01T19:15:36.487","lastModified":"2026-10-12T15:10:00.207","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB)."},{"lang":"es","value":"Se descubrió un problema en Django 4.2 anterior a 4.2.25, 5.1 anterior a 5.1.13 y 5.2 anterior a 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate() y QuerySet.extra() están sujetos a inyección SQL en los alias de columna, al usar un diccionario adecuadamente diseñado, con expansión de diccionario, como los kwargs pasados a estos métodos (en MySQL y MariaDB)."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"djangoproject","product":"Django","defaultStatus":"unknown","versions":[{"version":"4.2","lessThan":"4.2.25","versionType":"custom","status":"affected"},{"version":"5.1","lessThan":"5.1.13","versionType":"custom","status":"affected"},{"version":"5.2","lessThan":"5.2.7","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"cve@mitre.org","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":1.8,"impactScore":4.7},{"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: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":"2025-10-01T19:12:04.911087Z","id":"CVE-2025-59681","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"cve@mitre.org","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.25","matchCriteriaId":"B463C074-D7E8-4AD0-912D-4F1AC8C11148"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"5.1.13","matchCriteriaId":"07302099-FD08-4383-8BE5-267182A37E4A"},{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.2.7","matchCriteriaId":"13843918-439E-4481-89CF-2EDD8DFCF8EC"}]}]}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","source":"cve@mitre.org","tags":["Vendor Advisory"]},{"url":"https://groups.google.com/g/django-announce","source":"cve@mitre.org","tags":["Release Notes","Vendor Advisory"]},{"url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/","source":"cve@mitre.org","tags":["Release Notes","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/01/3","source":"af854a3a-2127-422b-91ae-364da2661108"}]}