CVE-2025-59682
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-10-01

Last updated on: 2025-11-04

Assigner: 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-01
Last Modified
2025-11-04
Generated
2026-05-07
AI Q&A
2025-10-01
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
djangoproject django From 4.2.0 (inc) to 4.2.25 (exc)
djangoproject django From 5.1 (inc) to 5.1.13 (exc)
djangoproject django From 5.2 (inc) to 5.2.7 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Django versions before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. It involves the django.utils.archive.extract() function, which is used by the "startapp --template" and "startproject --template" commands. The function allows partial directory traversal when extracting archives that contain file paths sharing a common prefix with the target directory, potentially leading to unintended file extraction locations.


How can this vulnerability impact me? :

The vulnerability can allow an attacker to perform partial directory traversal during archive extraction, which may lead to files being written outside the intended directory. This could result in limited integrity impact by overwriting or placing files in unintended locations, potentially affecting the application's behavior or security.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart