cve.bz

CVE-2025-59682

6.5 mediumEPSS 0.9%

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 3.1
6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.9% chance of exploitation in the next 30 days; higher than 60% of CVEs (scores of 2026-10-25)
CWE
CWE-23
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q95w-c7qg-hrffPyPIdjango>=4.2 <4.2.254.2.25
GHSA-q95w-c7qg-hrffPyPIdjango>=5.1 <5.1.135.1.13
GHSA-q95w-c7qg-hrffPyPIdjango>=5.2 <5.2.75.2.7
PYSEC-2026-1296PyPIdjango>=4.2 <4.2.25
>=5.1 <5.1.13
>=5.2 <5.2.7
4.2.25, 5.1.13, 5.2.7

References

Check your stackJSON