{"id":"CVE-2025-59682","aliases":["CVE-2025-59682","GHSA-q95w-c7qg-hrff","BIT-DJANGO-2025-59682","PYSEC-2026-1296"],"related":[],"kind":"vulnerability","state":"published","title":"Django vulnerable to partial directory traversal via archives","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-10-01T00:00:00.000Z","modified":"2026-10-12T15:10:00.207Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-23"],"affected":[{"ranges":[{"type":"custom","introduced":"4.2","fixed":"4.2.25","status":"affected"},{"type":"custom","introduced":"5.1","fixed":"5.1.13","status":"affected"},{"type":"custom","introduced":"5.2","fixed":"5.2.7","status":"affected"}],"vendor":"djangoproject","product":"Django","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.25"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.13"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.7"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2.0","fixed":"4.2.25"},{"status":"affected","introduced":"5.1","fixed":"5.1.13"},{"status":"affected","introduced":"5.2","fixed":"5.2.7"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.25"},{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.13"},{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.7"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.25"},{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"5.1.13"},{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.7"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["advisory","release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/","tags":["advisory","release-notes","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/01/3","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59682","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/django","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-q95w-c7qg-hrff","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:10:29.537Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59682","url":"https://www.cve.org/CVERecord?id=CVE-2025-59682","licence":"CVE Terms of Use","modified":"2025-11-04T21:13:56.342Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q95w-c7qg-hrff","url":"https://github.com/advisories/GHSA-q95w-c7qg-hrff","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:30.221Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59682","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59682","licence":"Public domain","modified":"2026-10-12T15:10:00.207Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1296","url":"https://osv.dev/vulnerability/PYSEC-2026-1296","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:06.860Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2025-59682","url":"https://osv.dev/vulnerability/BIT-DJANGO-2025-59682","licence":"Apache-2.0","modified":"2026-09-08T08:46:33.667Z"}],"updatedAt":"2026-11-25T22:59:05.412Z","epss":{"score":0.00966,"percentile":0.62723,"date":"2026-12-01T12:00:22.000Z"}}