CVE-2025-59682
Last modified
CVE-2025-59682 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 0.86% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 4.2.0, < 4.2.25 |
| Djangoproject | Django | >= 5.1, < 5.1.13 |
| Djangoproject | Django | >= 5.2, < 5.2.7 |
References
- https://docs.djangoproject.com/en/dev/releases/security/Vendor Advisory
- https://groups.google.com/g/django-announceRelease Notes, Vendor Advisory
- https://www.djangoproject.com/weblog/2025/oct/01/security-releases/Release Notes, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-59682?
How severe is CVE-2025-59682?
How do I fix CVE-2025-59682?
Are you affected by CVE-2025-59682?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
