🛡️ CVE-2025-59682 on Debian — python-django
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.
Distribution advisory
This page covers CVE-2025-59682 as tracked by Debian, for the package python-django. The fix is available in version 3:4.2.25-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Weakness class
DEBIAN-CVE-2025-59682 is classified as CWE-23: Relative Path Traversal. Relative path sequences in user input are not neutralised, so requests can climb out of the intended directory.
Affected software
DEBIAN-CVE-2025-59682 is recorded against 1 package.
- python-django (fixed in 3:4.2.25-1)
Timeline and source
Published on 1 October 2025 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2025-59682 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| python-django | — | 3:4.2.25-1 |
References
Similar Threats
- Unknown DEBIAN-CVE-2024-38875
- Unknown DEBIAN-CVE-2024-27351
- Unknown DEBIAN-CVE-2024-24680
- Unknown DEBIAN-CVE-2023-41164
- Unknown DEBIAN-CVE-2023-43665
Vulnerability Monitoring
Track new vulnerabilities in python-django
DEBIAN-CVE-2025-59682 is rated CVSS 5.0 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.