CVE-2025-59682
Django vulnerable to partial directory traversal via archives
3.1
LOW
CVSS 3.1
EPSS 0.02%
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.
How to fix CVE-2025-59682
To remediate CVE-2025-59682, upgrade the affected package to a fixed version below.
- —upgrade to 4.2.25 or later
- —upgrade to 2:2.2.28-1~deb11u9 or later
- —upgrade to 4.2.25 or later
Is CVE-2025-59682 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 4.2.0, < 4.2.25, >= 5.1.0, < 5.1.13, >= 5.2.0, < 5.2.7
- from 0, < 2:2.2.28-1~deb11u9
- >= 4.2, < 4.2.25
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |