CVE-2025-59682
LOW3.1EPSS 0.02%Django vulnerable to partial directory traversal via archives
Published: 10/1/2025Modified: 4/28/2026
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.
Affected packages (3)
- Bitnami/django>= 4.2.0, < 4.2.25, >= 5.1.0, < 5.1.13, >= 5.2.0, < 5.2.7
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u9
- PyPI/django>= 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 |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-59682
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-59682
- PATCHhttps://github.com/django/django
- WEBhttps://docs.djangoproject.com/en/dev/releases/security
- WEBhttps://docs.djangoproject.com/en/dev/releases/security/
- WEBhttps://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e
- WEBhttps://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2
- WEBhttps://groups.google.com/g/django-announce
- WEBhttps://www.djangoproject.com/weblog/2025/oct/01/security-releases
- WEBhttps://www.djangoproject.com/weblog/2025/oct/01/security-releases/
- WEBhttp://www.openwall.com/lists/oss-security/2025/10/01/3