6.5

CVE-2025-59682: djangoproject django Relative Path Traversal

Modified
AliasesGHSA-q95w-c7qg-hrffBIT-django-2025-59682PYSEC-2026-1296
Published 01-10-2025Last modified 04-11-2025

Vulnerability summary

CVE-2025-59682 is a medium (CVSS 6.5) Relative Path Traversal vulnerability in djangoproject django. EPSS estimates a 0.97% chance of exploitation in the next 30 days, higher than 62.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 3.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.97%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 9

Timeline

  1. 01-10-2025
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.97%

Chance of exploitation in the next 30 days

Percentile

63%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.93% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • py3-django< 4.2.25-r0
Chainguard1 product
  • awx< 24.6.1-r17
Debian1 product
  • python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.25-1
Djangoproject1 product
  • django≥ 4.2, < 4.2.25 | ≥ 4.2.0, < 4.2.25 | ≥ 5.1, < 5.1.13 | ≥ 5.2, < 5.2.7
PyPI1 product
  • django≥ 4.2, < 4.2.25 | ≥ 5.1, < 5.1.13 | ≥ 5.2, < 5.2.7
Ubuntu1 product
  • python-django< 1.6.11-0ubuntu1.3+esm8 | < 1.8.7-1ubuntu5.15+esm9 | < 1:1.11.11-1ubuntu1.21+esm12 | < 2:2.2.12-1ubuntu0.29+esm4 | < 2:3.2.12-2ubuntu1.22 | < 3:4.2.11-1ubuntu1.11 | < 3:5.2.4-1ubuntu2

6 vendors · 6 products

References

18 links
Show all 18 references