{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-59682","id":"CVE-2025-59682","title":"Django vulnerable to partial directory traversal via archives","description":"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.","descriptionLong":"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.","published":"2025-10-01T00:00:00.000Z","updated":"2026-11-17T02:45:30.003360959Z","reserved":"2025-09-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"mitre"},"metrics":[{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"mitre"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"mitre.org"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"GitHub"}],"rating":"low","products":["djangoproject Django"],"affectedProducts":[{"vendor":"djangoproject","product":"Django","defaultStatus":"unknown","versions":[{"lessThan":"4.2.25","status":"affected","version":"4.2","versionType":"custom"},{"lessThan":"5.1.13","status":"affected","version":"5.1","versionType":"custom"},{"lessThan":"5.2.7","status":"affected","version":"5.2","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.25",">=5.1 <5.1.13",">=5.2 <5.2.7"],"fixed":["4.2.25","5.1.13","5.2.7"],"advisory":"GHSA-q95w-c7qg-hrff"}],"cwes":["CWE-23"],"aliases":["BIT-django-2025-59682","GHSA-q95w-c7qg-hrff","PYSEC-2026-1296"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["Vendor Advisory","web"]},{"url":"https://groups.google.com/g/django-announce","tags":["Release Notes","Vendor Advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/","tags":["Release Notes","Vendor Advisory","article"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/01/3","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59682.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59682","tags":["advisory"]},{"url":"https://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e","tags":["web"]},{"url":"https://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases","tags":["web"]},{"url":"https://pypi.org/project/django","tags":["package"]},{"url":"https://github.com/advisories/GHSA-q95w-c7qg-hrff","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00966,"epssPercentile":0.62436,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-59682","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59682","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-59682","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q95w-c7qg-hrff","ok":true,"note":"GHSA-q95w-c7qg-hrff"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-59682","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}