{"id":"CVE-2025-59682","sourceIdentifier":"cve@mitre.org","published":"2025-10-01T19:15:37.007","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. The django.utils.archive.extract() function, used by the \"startapp --template\" and \"startproject --template\" commands, allows partial directory traversal via an archive with file paths sharing a common prefix with the target directory."},{"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. La función django.utils.archive.extract(), utilizada por los comandos 'startapp --template' y 'startproject --template', permite un salto de directorio parcial a través de un archivo con rutas de fichero que comparten un prefijo común con el directorio objetivo."}],"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:U/C:N/I:L/A:N","baseScore":3.1,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":1.6,"impactScore":1.4},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-10-01T19:10:29.537724Z","id":"CVE-2025-59682","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-23"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2.0","versionEndExcluding":"4.2.25","matchCriteriaId":"D7CEDFD0-947D-48ED-BAD7-624807F353A5"},{"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"}]}