CVE-2025-59682: Django CVE-2025-59681 and CVE-2025-59682

Published Sep 30, 2025
·
Updated

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.

Other sources

The django.utils.archive.extract() function, used by startapp --template and startproject --template, allowed partial directory-traversal via an archive with file paths sharing a common prefix with the target directory.

Red Hat

Affected Software

9 affected componentsFixes available
Django Django<4.2.25
Django Django<5.1.13
Django Django<5.2.7
pip/django>=5.2<5.2.7
5.2.7
pip/django>=5.1<5.1.13
5.1.13
pip/django>=4.2<4.2.25
4.2.25
djangoproject Django>=4.2.0<4.2.25
djangoproject Django>=5.1<5.1.13
djangoproject Django>=5.2<5.2.7

Event History

Sep 30, 2025
Data Sourced
via Red Hat·01:21 PM
DescriptionSeverityAffected Software
Oct 1, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
Affected Software
Advisory Published
via GitHub·09:31 PM
Data Sourced
via GitHub·09:31 PM
DescriptionSeverityWeaknessAffected Software
Aug 3, 57778
Event
via NVD·08:15 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59682?

CVE-2025-59682 is classified as a medium severity vulnerability due to its potential for partial directory traversal.

2

How do I fix CVE-2025-59682?

To fix CVE-2025-59682, update Django to version 4.2.25, 5.1.13, or 5.2.7 or later.

3

What versions of Django are affected by CVE-2025-59682?

Django versions 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7 are affected by CVE-2025-59682.

4

What functionality is impacted by CVE-2025-59682?

CVE-2025-59682 impacts the django.utils.archive.extract() function used in the 'startapp --template' and 'startproject --template' commands.

5

What type of attack does CVE-2025-59682 facilitate?

CVE-2025-59682 allows an attacker to achieve partial directory traversal through specially crafted archive files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203