CVE-2025-59682
BaseFortify
Publication date: 2025-10-01
Last updated on: 2025-11-04
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| 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 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.