Ubuntu CVE Tracker
UBUNTU-CVE-2025-59682
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python-django | All versions before 1.6.11-0ubuntu1.3+esm8 (fixed in 1.6.11-0ubuntu1.3+esm8) |
| Ubuntu:Pro:16.04:LTS | python-django | All versions before 1.8.7-1ubuntu5.15+esm9 (fixed in 1.8.7-1ubuntu5.15+esm9) |
| Ubuntu:Pro:18.04:LTS | python-django | All versions before 1:1.11.11-1ubuntu1.21+esm12 (fixed in 1:1.11.11-1ubuntu1.21+esm12) |
| Ubuntu:Pro:20.04:LTS | python-django | All versions before 2:2.2.12-1ubuntu0.29+esm4 (fixed in 2:2.2.12-1ubuntu0.29+esm4) |
| Ubuntu:22.04:LTS | python-django | All versions before 2:3.2.12-2ubuntu1.22 (fixed in 2:3.2.12-2ubuntu1.22) |
| Ubuntu:24.04:LTS | python-django | All versions before 3:4.2.11-1ubuntu1.11 (fixed in 3:4.2.11-1ubuntu1.11) |
| Ubuntu:25.10 | python-django | All versions before 3:5.2.4-1ubuntu2 (fixed in 3:5.2.4-1ubuntu2) |
| Ubuntu:26.04:LTS | python-django | All versions before 3:5.2.4-1ubuntu2 (fixed in 3:5.2.4-1ubuntu2) |