CVE-2025-59682
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-59682, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

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-07-06
AI Q&A
2025-10-01
EPSS Evaluated
2026-07-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 Quick Actions

Instant insights powered by AI
Executive Summary

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.

Impact Analysis

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.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-59682. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart