# CVE-2025-59682: Django vulnerable to partial directory traversal via archives

- Severity: Low 3.1 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2025-10-01T00:00:00.000Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-q95w-c7qg-hrff, BIT-DJANGO-2025-59682, PYSEC-2026-1296
- Weaknesses: CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- djangoproject Django: from 4.2 before 4.2.25; from 5.1 before 5.1.13; from 5.2 before 5.2.7; from 4.2.0 before 4.2.25
- django (PyPI): from 4.2 before 4.2.25; from 5.1 before 5.1.13; from 5.2 before 5.2.7
- django (Bitnami): from 4.2.0 before 4.2.25; from 5.1.0 before 5.1.13; from 5.2.0 before 5.2.7

## Every score

- mitre: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, release-notes, vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2025/oct/01/security-releases/> (advisory, release-notes, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/10/01/3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59682> (advisory, web)
- <https://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e> (web)
- <https://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://www.djangoproject.com/weblog/2025/oct/01/security-releases> (web)
- <https://pypi.org/project/django> (package)
- <https://github.com/advisories/GHSA-q95w-c7qg-hrff> (advisory)

## Sources

- CVE List: [CVE-2025-59682](https://www.cve.org/CVERecord?id=CVE-2025-59682), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-q95w-c7qg-hrff](https://github.com/advisories/GHSA-q95w-c7qg-hrff), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-59682](https://nvd.nist.gov/vuln/detail/CVE-2025-59682), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-1296](https://osv.dev/vulnerability/PYSEC-2026-1296), CC-BY-4.0, modified 2026-07-07
- Bitnami Vulnerability Database: [BIT-DJANGO-2025-59682](https://osv.dev/vulnerability/BIT-DJANGO-2025-59682), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-59682 · Whole record: https://cve.day/CVE-2025-59682.json · Rebuilt by cve.day 2026-11-25T22:59:05.412Z
