CVE-2025-59682

medium

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.

References

https://www.djangoproject.com/weblog/2025/oct/01/security-releases/

https://groups.google.com/g/django-announce

https://docs.djangoproject.com/en/dev/releases/security/

Details

Source: Mitre, NVD

Published: 2025-10-01

Updated: 2025-10-22

Risk Information

CVSS v2

Base Score: 6.8

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

Severity: Medium

CVSS v3

Base Score: 6.5

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Severity: Medium

EPSS

EPSS: 0.0008