CVE-2025-59682
October 01, 2025
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.
Affected Packages
django (PYTHON):
Affected version(s) >=4.2 <4.2.25Fix Suggestion:
Update to version 4.2.25django (PYTHON):
Affected version(s) >=5.2 <5.2.7Fix Suggestion:
Update to version 5.2.7django (PYTHON):
Affected version(s) >=5.1 <5.1.13Fix Suggestion:
Update to version 5.1.13Related ResourcesĀ (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
3.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Relative Path Traversal
EPSS
Base Score:
0.04