CVE-2025-59682
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.
- CVSS 3.1
- 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - EPSS
- 0.9% chance of exploitation in the next 30 days; higher than 60% of CVEs (scores of 2026-10-25)
- CWE
- CWE-23
- Published
- Modified
- Record from
- the NVD, synced
Affected
- djangoproject:django
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-q95w-c7qg-hrff | PyPI | django | >=4.2 <4.2.25 | 4.2.25 |
| GHSA-q95w-c7qg-hrff | PyPI | django | >=5.1 <5.1.13 | 5.1.13 |
| GHSA-q95w-c7qg-hrff | PyPI | django | >=5.2 <5.2.7 | 5.2.7 |
| PYSEC-2026-1296 | PyPI | django | >=4.2 <4.2.25 >=5.1 <5.1.13 >=5.2 <5.2.7 | 4.2.25, 5.1.13, 5.2.7 |